Undefined reference to _d_throw
Jacob Carlborg
doob at me.com
Sat Nov 2 08:37:29 PDT 2013
On 2013-11-02 15:45, Iain Buclaw wrote:
> Really? I thought that was dmd.conf telling the compiler to do that....
No, linking with libphobos2, libpthread and libm is hard coded into DMD.
The command used to link:
gcc main.o -o main -m64
-L/Users/doob/.dvm/compilers/dmd-2.063.2/bin/../lib -lphobos2 -lpthread -lm
My dmd.conf file:
[Environment]
DFLAGS=-I%@P%/../imports -I%@P%/../src/phobos
-I%@P%/../src/druntime/import -L-L%@P%/../lib
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list