tango module object cannot read file object.d
Martin d Anjou
point14 at magma.ca
Sun Feb 4 22:01:15 PST 2007
> It may be that your -I is one level too deep? Looks like it ^^. In general
Yes, that was it.
Now the linker can't find phobos:
$ /tools/bin/dmd -L-L/tools/SRC/tango/lib/libphobos.a -I/tools/SRC/tango ttango.d
gcc ttango.o -o ttango -m32 -lphobos -lpthread -lm -Xlinker -L/tools/SRC/tango/lib/libphobos.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lphobos
collect2: ld returned 1 exit status
--- errorlevel 1
$ file /tools/SRC/tango/lib/libphobos.a
/tools/SRC/tango/lib/libphobos.a: current ar archive
So phobos is there... but why the error?
Martin
More information about the Digitalmars-d
mailing list