Mail Archives: djgpp/1998/01/03/14:43:10
At 11:51 1/2/1998 GMT, Joshua Eckstein wrote:
>Is there a flag I can use with the linker to force it to link in a library
>with a certain filename, without renaming it "libFILE.a" (with that "lib"
>prefix?) ? For example, linking in the library "abcde.a"?
Yes. Just add the library's file name to the link command line. (Watch out
for the one-pass linker; see FAQ section 8.9.)
gcc -o myprog foo.o bar.o baz.o abcde.a
Nate Eldredge
eldredge AT ap DOT net
- Raw text -