Syslab Sales and Services Pvt Ltd. wrote:
> I'm facing a problem compiling a simple program that uses the
> gtk library. I'm using the sample program include in the texinfo
> documentation itself to be sure that I don't make any mistakes.
>
> Well, I've set the LIBRARY_PATH and the C_INCLUDE_PATH
> environment variables to point to the places where libgtk.a and gtk.h
> reside respectively from /etc/profile . Then when I
> compile saying
> gcc -llibgtk.a sample.c
> I get an error message from ld saying llibgtk.so could not be opened.
You're using the wrong syntax. `-lfoo' will link a library called
either libfoo.so or libfoo.a, depending upon which it finds first and
whether -static was used.
`-llibgtk.a' would presumably look for either liblibgtk.a.so or
liblibgtk.a.a.
Try using `-lgtk' instead.
--
Glynn Clements <[EMAIL PROTECTED]>