[Expat-discuss] Re: no subject
Carlos Pereira
carlos at pehoe.civil.ist.utl.pt
Sat Jun 14 17:57:37 EDT 2003
>$ cc examples/outline.c -o o
> #include <expat.h>
> ^
>"/dir/direct/expat/expat-1.95.6/examples/outlin
>e.c", line 25: error(1003):
> could not open source file "expat.h"
Are you on Unix/Linux?
If you are using non-standard locations for your
libraries, you must tell the compiler AND the linker
where are the files, for example using directives as this:
cc examples/outline.c -o o -I/my_path_to_expat/expat/include
-L/my_path_to_expat/expat/lib
perhaps you also need to add the library path
to /etc/ld.so.conf, and run /sbin/ldconfig
you should read something about how
to use libraries in Unix/Linux
Carlos
More information about the Expat-discuss
mailing list