linux - Help, no clue how to make this Makefile -


i have read several tutorials still not have clue :-) have c file "liboratidy.c" file includes oder libraries:

#include <stdio.h> #include <string.h> #include <errno.h> #include <tidy.h> #include <buffio.h> #include <oci.h> #include <ociextp.h> 

the needed files located in /user/lib/libtidy.so , header files in /usr/include/tidy/ , /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/

i try compile code shared library every way invoke gcc compiler "xy.h file not found" error. files existing. have never done c,c++ ... how make makefile compiling source?

thanks christian

the -i options should point directories (e.g. -i /usr/include/tidy) contain header files need compile against. -l options should point directories (e.g. -l /usr/lib/opracle/.....) contain libraries need build against. -l options should contain shortened name (e.g. libfoo.so -> -lfoo) of libraries want build against.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -