Problem including a libraray...
kf
kf@iki.fi
Thu May 3 15:16:00 GMT 2007
On 5/3/07, Mad <magnusdreyer@hotmail.com> wrote:
> trying to compile on a linux with library installed in the following
> directory /home/lala/mxml-2.3/
> LDFLAGS=-lpthread -lrt -static -mxml -B /home/smartpit/mxml-2.3/
How about:
LDFLAGS=-static -lpthread -lrt -L /home/lala/mxml-2.3/ -mxml
I.e. you said the installation directory was /home/lala/mxml-2.3/, so
why did you use
/home/smartpit/mxml-2.3/ in LDFLAGS? And use -L, not -B. And use it
before -mxml.
And (but I don't know what the library is) maybe it should be -lmxml
or something (note the
'l' in the prefix).
More information about the Gcc-help
mailing list