www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/27/12:03:31

Date: Thu, 27 Feb 1997 18:55:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: default libraries
In-Reply-To: <331525F2.5407@cs.com>
Message-ID: <Pine.SUN.3.91.970227185432.2124I-100000@is>
MIME-Version: 1.0

On Wed, 26 Feb 1997, John M. Aldrich wrote:

> Alex Demko wrote:
> > 
> > What default libraries (if any) get linked into my EXE, when I compile
> > C++ (not C) programs? Is it still just libc.a or are any other libs
> > being snuck (sp?) in?
> 
> Assuming that you use 'gxx' to compile, all you need to do to see what
> libraries get linked in is to add the '-v' switch and examine the call
> to ld.

To see which modules from which libraries are linked in, add -Wl,-t to
your gcc/gxx command line that you use to link the program.  It will
cause the linker to print each module (both in .o object files and .a
libraries) that ld links into your program.

- Raw text -


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