www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/03/14:43:10

Date: Sat, 3 Jan 1998 11:39:45 -0800 (PST)
Message-Id: <199801031939.LAA26819@adit.ap.net>
Mime-Version: 1.0
To: "Joshua Eckstein" <kwe1 AT flash DOT net>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Linking with Non-normal Library Filenames

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019