This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linking libraries without name prefix/suffix


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]