From: Colin Nevin (colin.nevin at domain meritsolutions.ie)
Date: Wed 18 Sep 2002 - 15:00:02 IST
just checked the ld man page and it's at link time, have you checking if
your uid for compiling has read access to the relevant files and
directory, though that is probably just me being paranoid - Can I borrow
your tinfoil hat Waider? lol
On Wed, 2002-09-18 at 14:37, Colin Nevin wrote:
> If it is the libraries not being found then add
> '-L/usr/lib' (or path to these libraries) to your gcc cmd, unless you
> already do that.
> I would do the following if shared libraries are not being found at
> 'export LD_LIBRARY_PATH=<path to libraries>'
> Dunno offhand if ld.so.conf is for the linker at compile time or for the
> runtime loader to find libraries at runtime - anyone?
> Other than that the output from your make or gcc command would help.
> On Wed, 2002-09-18 at 13:11, Carlos Luna wrote:
> > Hi folks!
> > Since noone's replied to my previous plea, I'll try again...
> > I'm trying to compile a simple app in C/C++ that uses the IJG Jpeg
> > library to load image files but get 'unresolved symbol' linker errors.
> > In /usr/lib are located:
> > - libjpeg.a
> > - libjpeg.la
> > - libjpeg.so (link to libjpeg.so.62.0.0)
> > - libjpeg.so.62.0.0
> > These libraries are taken directly from the Debian packages so there
> > shouldn't be any problems with them.
> > Of course, I'm using the -ljpeg flag for the linker but to no avail.
> > I've also read that /usr/lib is a 'trusted' directory, so there
> > shouldn't be any need to add this path to ld.so.conf. It doesn't work
> > anyway. I've already tried. :)
> > I'm using Debian 2.2 (2.4.18 kernel).
> > LD version 126.96.36.199.1 (if it matters)
> > What could be going wrong? Is it a path problem?
> > Should there be a special linker flag?
> > Is there a tool I could use to check out the contents of a library file?
> > What are all those different library files for anyway? (.a .la .so )
> > Thanks in advance.
> > Regards,
> > Carlos
> > --
> > Irish Linux Users' Group: ilug at domain linux.ie
> > http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> > List maintainer: listmaster at domain linux.ie
> Colin Nevin,
> Software Engineer,
> Merit Solutions Ltd. (Dublin),
> 5 Goatstown Cross,
> Dublin 14.
> Ph/Fax +353 (0)1 2885193
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at domain linux.ie
-- Colin Nevin, Software Engineer, Merit Solutions Ltd. (Dublin), 5 Goatstown Cross, Dublin 14. Ph/Fax +353 (0)1 2885193
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:56 GMT