Re: linking libraries without name prefix/suffix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi k wayne,

> i need to link (through invokation of g++, if possible) a
> library that does not have the "libxxx.a" scheme...

Let's assume the "what should be a library but isn't because it doesn't
follow the naming requirements for being a library (lib prefix and .a
suffix)" is called ImReallyALibraryDammit.

Do this in that directory, say /secret/library/location, which contains
ImReallyALibraryDammit:

ln -s ImReallyALibraryDammit libImReallyALibraryDammit.a

Then the linker will be able to locate the malnamed library.  So this will
now work:

g++ foo.cpp -L/secret/library/location -lImReallyALibraryDammit

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux