This is the mail archive of the
mailing list for the Cygwin project.
Re: gcc does not know about "new" and "delete"
On Sat, Sep 22, 2007 at 04:29:53AM +0200, Markus E L wrote:
>Erich Dollansky wrote:
>> Framk gave you the answer.
>Was the right answer ...
>> gcc is a plain c compiler.
>... but this is wrong. Gcc determines from the file suffic which language
> .cpp -> c++
> .c -> C
>and so on.
>Calling it as g++ vs. calling it as gcc though determines which
>runtimes are linked automatically (and partly which include paths are
> gcc -o x x.cpp -lstdc++
>works perfectly with the OPs program.
That may be but it isn't guaranteed to work perfectly with every single
C++ program out there. There are potentially other libraries which might
be required for C++. You really should use g++ to link C++ programs.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html