This is the mail archive of the cygwin@sources.redhat.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: Trying to compile a simple C++ program


On Mon, Feb 12, 2001 at 10:57:17PM +1300, Dan Plimak wrote:
> 
> You'll be wanting to add -lstdc++ to the command line, as in:
> 
> $ gcc -lstdc++ a.exe a.cpp
> 

Silly me, missed the '-o' switch. The command line should be:

$ gcc -lstdc++ -o a.exe a.cpp

Ashamedly,

  -- danp

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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