linking libraries without name prefix/suffix

k wayne pleexed@gmail.com
Thu Oct 25 10:11:00 GMT 2007


hi,
i hope this is the right mailinglist for this, my apologies this is
not the case :)

however, i need to link (through invokation of g++, if possible) a
library that does not have the "libxxx.a" scheme, so i would like to
make g++ not prefix the library name with "lib" and suffix it with
".a". if i understood the gcc manual correctly, i could specify the
libarary without the "-l" option, but then the library paths (plus
those specified with "-L") would not be searched. unfortunately, i
need these paths to be searched, because i do not know the exact paths
of the libraries since i am trying to write a makefile for
compilation.
by the way, i'm trying hard to avoid external tools such as the
autotools, so i hope there is a way to solve my little problem in
another way :)

thank you in advance



More information about the Gcc-help mailing list