LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   c... problem with xml library (https://www.linuxquestions.org/questions/programming-9/c-problem-with-xml-library-247647/)

true_atlantis 10-26-2004 05:19 PM

c... problem with xml library
 
how can i get my c program to figure out where the nanoftp.h library is?? this is what happens when i compile, and this is where the .h file is located


[r@hayne9 rowley]$ gcc -Wall exp.c -lxml2 -o exp
exp.c:21:28: libxml/nanoftp.h: No such file or directory
exp.c: In function `main':
exp.c:74: warning: implicit declaration of function `xmlNanoFTPNewCtxt'
[r@hayne9 rowley]$ locate nanoftp.h
/usr/include/libxml2/libxml/nanoftp.h
/usr/include/gnome-xml/nanoftp.h
/usr/share/doc/libxml2-devel-2.6.8/html/libxml-nanoftp.html
/usr/share/gnome-xml/html/gnome-xml/gnome-xml-nanoftp.html
[r@hayne9 rowley]$

true_atlantis 10-26-2004 06:34 PM

well, figured that out... had to include a directory... now i come into a new problem...

-bash-2.05b$ gcc -Wall exp.c -I/usr/include/libxml2 -o exp
/tmp/cc0V2W5j.o(.text+0x1f0): In function `main':
: undefined reference to `xmlNanoFTPNewCtxt'
collect2: ld returned 1 exit status
-bash-2.05b$


what is the problem here? it seems that one of the files comiled indirectly has an error... BAA


All times are GMT -5. The time now is 01:11 AM.