|
From: Georg F. <fu...@is...> - 2000-12-04 09:11:15
|
Des wrote:
>
> For some reason, any code which uses the C++ string class doesn't seem to
> link properly under mingw32. It does compile, however, so am I neglecting
> to link to something? Here's an example:
>
> #include <string>
>
> int main()
> {
> string s;
> s="";
> return 0;
> }
>
> Attempting to build this raises the following error:
>
> C:\>gcc dodgy.cpp -o dodgy.exe
> C:\WINDOWS\TEMP\cc1RxCfb.o(.text$_S_oom_malloc__t23__malloc_alloc_template1i
> 0Ui+
For C++-code you must use "g++", at lest for linking.
--
Georg Fusz
Technische Universitaet Berlin, Germany
Fon:
Uni.: +49 30 314 26 884
privat: +49 30 815 30 32
Handy: +49 173 20 10 696
Homepage: http://www.cadlab.tu-berlin.de/~fusz/
|