gcc is used normally with the C language normally with the file extension of *.c, g++ is normally used with C++ language normally with the file extension of *.cpp. So I would assume that if you were to change the file name from *.c to *.cpp it would use g++ instead of gcc, but I have not tested that.
_______
"Question with boldness even the existence of a God; because, if there be one, he must more approve of the homage of reason, than that of blind-folded fear."
-- Thomas Jefferson
"If at first the idea is not absurd, there is no hope for it"
-Albert Einstein
--- On Fri, 1/8/10, er <erw...@gm...> wrote:
> From: er <erw...@gm...>
> Subject: [Dev-C++] Compiler options : g++ vs gcc
> To: dev...@li...
> Date: Friday, January 8, 2010, 7:02 PM
> Hello,
>
> 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.
>
> Thanks.
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|