Hey guys, sorry if this has been asked and answered before. I tried search function but got a lot of irrelevant results. Anywho...
I used to use CB before and had no problem using the C++11 standard. Mostly dabbling, hobby-level programming and such. I recently wanted to get back into to write a console app for figuring out some values for a game but I've run into an issue. Basically I have a bunch of structures that I want to brace initialize but it keeps throwing the
in C++98 'Veld' must be initialized by constructor, not by '{...}'|
errors on me for each and every structure. I have the -stdc++11 box checked in the GNU GCC compiler option. Any idea why it's still throwing this error? Here's my code so far, it's quite incomplete as I just wanted to run a quick build to find any errors I had so far.:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
struct ORE
{
float fOreValue = 0;
int nTrit = 0;
int nPyer = 0;
int nMex = 0;
int nIso = 0;
int nNocx = 0;
int nMega = 0;
int nZyd = 0;
int nMorph = 0;
};
int main()
{
ORE Veld = {0, 415};
ORE CVeld = {0, 436};
ORE DVeld = {0, 457};
ORE Scord = {0, 346, 173};
ORE CScord = {0, 363, 182};
ORE MScord = {0, 380, 190};
ORE Pyro = {0, 351, 25, 50, 0, 5};
ORE SPyro = {0, 368, 26, 53, 0, 5};
ORE VPyro = {0, 385, 27, 55, 0, 5};
return 0;
}
Thanks for the help, this is bugging the poop outta me. :p
PS: Yes this is for EVE online. :p