* Re: Question about compiling some C++ code.
@ 2003-05-24 14:34 Wayne
0 siblings, 0 replies; 3+ messages in thread
From: Wayne @ 2003-05-24 14:34 UTC (permalink / raw)
To: gcc-help
Note it makes a difference what you name your file. If you
name your file something.c, then gcc is invoked, and the code
is compiled as if it were a C program, so standard C++
libraries are not linked automatically. If you name something
on the other hand something.cpp, g++ is used, and the code is
compiled as C++ code, linking libstdc++ and making C++ functions
available...
Wayne Keen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about compiling some C++ code.
2003-05-24 14:00 Tim Musson
@ 2003-05-24 14:09 ` Mihnea Balta
0 siblings, 0 replies; 3+ messages in thread
From: Mihnea Balta @ 2003-05-24 14:09 UTC (permalink / raw)
To: Tim Musson, gcc-help
Are you compiling with gcc? Try with g++.
On Saturday 24 May 2003 16:59, Tim Musson wrote:
> gcc-help,
>
> Getting the following error from some code that compiles with Visual C++
> on Win32. I am running gcc from cygwin.
>
> /cygdrive/c/TEMP/ccgLCDNh.o(.text+0x2012):blat.cpp: undefined reference to
> `operator new[](unsigned)'
>
> I am not a C++ programer, and don't know how to 'define' this. Can
> anyone point me in the right direction?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Question about compiling some C++ code.
@ 2003-05-24 14:00 Tim Musson
2003-05-24 14:09 ` Mihnea Balta
0 siblings, 1 reply; 3+ messages in thread
From: Tim Musson @ 2003-05-24 14:00 UTC (permalink / raw)
To: gcc-help
gcc-help,
Getting the following error from some code that compiles with Visual C++
on Win32. I am running gcc from cygwin.
/cygdrive/c/TEMP/ccgLCDNh.o(.text+0x2012):blat.cpp: undefined reference to `operator new[](unsigned)'
I am not a C++ programer, and don't know how to 'define' this. Can
anyone point me in the right direction?
--
Tim Musson
Flying with The Bat! eMail v1.62q
Windows 2000 5.0.2195 (Service Pack 2)
To make a long story short, don't tell it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-24 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-24 14:34 Question about compiling some C++ code Wayne
-- strict thread matches above, loose matches on Subject: below --
2003-05-24 14:00 Tim Musson
2003-05-24 14:09 ` Mihnea Balta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).