Re: linking against stdandard libraries
Re: linking against stdandard libraries
- Subject: Re: linking against stdandard libraries
- From: Damien Bobillot <email@hidden>
- Date: Fri, 22 Jul 2005 14:11:29 +0200
Le 22 juil. 05 à 13:57, Andreas Grosam a écrit :
On 21.07.2005, at 17:32, Chris Espinosa wrote:
On Jul 21, 2005, at 3:37 AM, Andreas Grosam wrote:
The project templates for C++ do not explicitly link against a
standard library.
In which cases - e.g. for which target type, or for which build
settings - do i need to explicitly link against a standard
(shared) lib?
None. If you are compiling C++, the compiler automatically links
against the appropriate C++ standard librari. In gcc 3.3 and
earlier this is a static library; in gcc 4.0 and later this is a
systemwide shared library.
Thanks Chris,
i was just confused not to see this library anywhere.
Would it be possible that XCode determines this implicit libraries,
and visualizes this somehow in the project? For instance
automatically including an entry in the list of linked libraries
for each target, which couldn't be removed.
(maybe a feature request ;-) )
Look at the the raw gcc output :
- open the "build results" window
- on the horizontal separator in the middle of the window, you have a
small button with simulated text. Press it.
- search the line beginning with Ld, you have the raw linker output
just after.
You'll see all included library (-l option) and frameworks (-
framework option).
If the stdc++ lib is not included, just add it to your projet as you
do for all other liibraries.
--
Damien Bobillot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden