QNX libs issues

Hi,

I have trouble building the xmel program, this is what i get when i run a make command,
make[1]: Entering directory /download/mel' gcc -lxml2 -o mel mel.o melc.o meldtd.o melutil.o /usr/qnx630/host/qnx6/x86/usr/ntox86/bin/ld: cannot find -lxml2 collect2: ld returned 1 exit status make[1]: *** [mel] Error 1 make[1]: Leaving directory /download/mel’
make: *** […/mel] Error 2

Does somebody know whats going on in here.

thanks for the help,
regards,
qnxlyzer

I assume you are trying to make use of the expat xml library.
If so try using -lexpat

Well, it says it cannot find the xml2 library. Do you have it installed? I don’t it is part of the QNX. You will have to download from the 3rd party repository or install from the 3rd party CD.

Thanks,

I have the xml2 libs and i am not trying to make use of the expat library, for some reason , the linker cannot use the libs ( it knows where it is ). Did anybody face this problem using xmel ?

thanks,
qnxlyzer

Where is your xml2 lib installed? If it is not in the standard /usr/lib, you will need to add -L option so that gcc can find it.

eg: if yours is in /opt/lib, you will need:

gcc -o mel mel.o melc.o meldtd.o melutil.o -L/opt/lib -lxml2