Re: gcc vs g++
Re: gcc vs g++
- Subject: Re: gcc vs g++
- From: David Fang <email@hidden>
- Date: Fri, 26 Aug 2005 16:19:02 -0400 (EDT)
> ok, I'm a bit confused. I thought that gcc and g++ could be used
> more or less interchangeably on the command line. But, I just created
Hi,
You're getting linker errors becasuse g++ will implicitly link in
libstdc++ (among other things), whereas gcc won't. You should use g++ for
C++ code. This has also been been discussed in more detail somewhere in
the archives for this mailing list.
> This compiles fine using: g++ main.cpp
> but if I use: gcc main.cpp
> it fails with linker errors; presumably because of the name space.
> What's going on here? am I missing something? what will xcode do?
David Fang
_______________________________________________
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
References: | |
| >gcc vs g++ (From: Markian Hlynka <email@hidden>) |