noob string concatenation help.
anupam kapoor
anupam.kapoor at gmail.com
Fri Apr 13 06:09:16 PDT 2007
> gcc string.o -o obj/string-test -m32 -lphobos -lpthread -lm
> string.o: In function `_Dmain':
> string.d:(.gnu.linkonce.t_Dmain+0x45): undefined reference to `_d_arrayappendT'
> string.d:(.gnu.linkonce.t_Dmain+0x78): undefined reference to `_d_arrayappendT'
> collect2: ld returned 1 exit status
replying to self.
the undefined symbol is present in libphobos.a, somehow dmd cannot find it. if i try a "manual" link via gcc using:
"gcc string.o -o obj/st -m32 -L/usr/local/lib -lphobos -lpthread -lm" it just works.
here is how my /etc/dmd.conf looks:
,----
| seldon lib # cat /etc/dmd.conf
| [Environment]
| DFLAGS="-I/usr/local/lib/phobos -L-L/usr/local/lib"
`----
the phobos sources are in /usr/local/lib/phobos while, libphobos.a is in /usr/local/lib.
anupam
More information about the Digitalmars-d-learn
mailing list