[Expat-discuss] undefined reference when compile examples
Michael B. Allen
Sat, 18 Aug 2001 00:04:42 -0400
On Fri, Aug 17, 2001 at 10:35:49PM -0400, Willie Vu wrote:
> d:/temp/expat/expat-1.95.2/examples> make
> gcc -o elements elements.o -static -L../lib/.libs -lexpat
> elements.o: In function `main':
> /cygdrive/d/temp/expat/expat-1.95.2/examples/elements.c:31: undefined
> reference to `_imp__XML_ParserCreate'
I believe you need to include the .h path. Like -I../include/? or
similar. Also, is that third dot just before libs in the library path
really supposed to be there? This is a simple gcc options problem. You
need to get your include and library paths right.
Wow a memory-mapped fork bomb! Now what on earth did you expect? - lkml