Problem with g++ Ubuntu!
Posted: Tue Feb 19, 2013 3:38 pm
Well, i just installed Ubuntu, instaled g++, SDL,everything so i decided to make a simple sdl app so see if it works, and it compiled! but now im trying to port my engine, and it gives the following error:
a matrix is asigned from a list of initializer, the actuall error is in spanish: se asigna a una matriz desde una lista de inicializador i just translated, this was the problem:
so, i did the following thing to solve it:
And, it compiled perfectly! buuuut! when i run the program it gives me an error:
Segment violation or in spanish: ViolaciĆ³n de segmento
Any suggestions????
a matrix is asigned from a list of initializer, the actuall error is in spanish: se asigna a una matriz desde una lista de inicializador i just translated, this was the problem:
Code: Select all
bool Array[4];
...
Array = {0,0,0,0};
Code: Select all
bool Array[4];
...
Array[0] = 0;
Array[1] = 0;
Array[2] = 0;
Array[3] = 0;
Segment violation or in spanish: ViolaciĆ³n de segmento
Any suggestions????