Re: [Dev-C++] Compiler options : g++ vs gcc
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Michal M. <mol...@se...> - 2010-01-09 05:38:05
|
On Sat, 09 Jan 2010 02:02:21 +0100 (CET) er <erw...@gm...> wrote: > When I compile a program (Win32 console) I get a lot of > > [ Link error ] unreferenced std::string:: .... > > which an error which based on posts I saw elsewhere (stackoverflow > etc.) can be solved by compiling with g++ rather than gcc. > > Where in the dev-c++ IDE and how do I specify g++? > > I know it's possible because I have another project that shows g++ > exe in the compile log rather than gcc. When you create new project select C++ and not C that's all. Switching existing project to C++ is little bit complicated. You can set individual files to compile as C++ in the Project Options\Files Tab - select the file and check Compile file as C++. However there is probably no similar switch for linking. In wxDev-C++ close the project and reopen it and it should link as C++. In the original Dev-C++ close the project, open ProjectName.dev file in the project folder and change IsCpp=0 to IsCpp=1. Reopen the project in IDE and build. |