This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++ vs g++ [Re: Gcc compiler b18 newbie probs]


"Earnie Boyd" <earnie_boyd@hotmail.com> writes:
> I didn't realize that the c++ option was available.  I believe however 
> that the c++.exe and g++.exe supplied from cygnus are the same file with 
> different names.  I base this on exec "cmp -c /bin/g++.exe /bin/c++.exe" 
> not returning anything.

On systems that support linking, they're the same file. On Win32, they're
copies. Until recently, the program would include the different libraries
depending on what name it was called with (g++ or c++), much like what
gzip and gunzip do.

with egcs, there is *no* difference between c++ and g++. Those who want to 
use libg++, should now use:
    
    % c++ -o blah.exe blah.o -lg++

Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]