[wplug] libraries

Chris vze2f6h6 at verizon.net
Tue Mar 11 21:03:47 EST 2003


I am trying to write a little c program and I think that it's getting
confused with linking the libraries.

It is using the gd, libpng, and zlib libraries.  I had older version on my
system (RH 7.2) so I download the source for the newer versions and did the
whole ./configure make make install.  Now what I am guessing is that the new
installation put the libraries in a different location from where the
originals are.  How can I tell.  I included the correct header "gd.h".

When I try to compile it, I get the following errors:

test.o: In function `main':
test.o(.text+0xe): undefined reference to `gdImageCreate'
test.o(.text+0x24): undefined reference to `gdImageColorAllocate'
test.o(.text+0x43): undefined reference to `gdImageColorAllocate'
test.o(.text+0x61): undefined reference to `gdImageLine'
test.o(.text+0x8c): undefined reference to `gdImagePng'
test.o(.text+0xa8): undefined reference to `gdImageDestroy'
collect2: ld returned 1 exit status

It's been a while since I used C so I am very rusty.

Thanks,
Chris




More information about the wplug mailing list