Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Eclipse Build Issues (http://www.chiefdelphi.com/forums/showthread.php?t=132715)

bborah7390 01-12-2015 06:43 PM

Eclipse Build Issues
 
I am having the following issue when trying to build sample code using eclipse. Does anyone have any solutions or have seen this issue.

PHP Code:

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 

Thanks

calcmogul 01-12-2015 07:06 PM

Re: Eclipse Build Issues
 
At least on Linux, the example projects pass --std=c++1y to g++ already, which enables the ISO C++ 2014 standard (which is a superset of C++11). If it isn't enabled, do the following:

In the project's right-click context menu, navigate to Properties > C/C++ Build > Settings, then select "Cross G++ Compiler". The language standard under Dialect should be ISO C++1y.


All times are GMT -5. The time now is 09:55 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi