Problem including a libraray...

Brian Dessent brian@dessent.net
Thu May 3 15:00:00 GMT 2007


Mad wrote:

> CFLAGS=-c -Wall -B /home/smartpit/mxml-2.3/
> LDFLAGS=-lpthread -lrt -static -mxml -B /home/smartpit/mxml-2.3/

Can I suggest reading the docs instead of trying random stuff?  First,
you want -L not -B when specifying linker directories to search. 
Second, there is no space between -L and the directory.  Third, the -L
has to come before the -lmxl in the order, otherwise the linker won't
know where to look.  And fourth, get rid of -static.  That is only going
to make your life harder.

Brian



More information about the Gcc-help mailing list