New Reply

[C++] g++ compiler question

 
Share Thread Thread Tools
Aug10-12, 04:51 PM   #1
 

[C++] g++ compiler question


So here is the class constructor that is giving me issues:

Code:
cPlayer::cPlayer (SDL_Surface *tank, SDL_Surface *bullet, SDL_Surface *screen) 
{
Several definitions of variables declared in the class header file
}
When I compile it, it g++ says "warning: extended initializer lists only available with
-std=c++0x or -std=gnu++0x [enabled by default]" 4 times.

I'm curious as to what is causing this warning to appear because I am clueless as to what it means.

Thanks for reading, and any help is much appreciated.

-Peter P.

EDIT: I found the problem. I was defining things a certain way that was causing the warning to pop up.
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Front-row seats to climate change
>> Attacking MRSA with metals from antibacterial clays
>> New formula invented for microscope viewing, substitutes for federally controlled drug
New Reply
Thread Tools


Similar Threads for: [C++] g++ compiler question
Thread Forum Replies
Help, very simple mikroC compiler question. Programming & Comp Sci 2
F95 Compiler Question Programming & Comp Sci 4
icc compiler Programming & Comp Sci 7
Compiler Computing & Technology 1
Compiler Computing & Technology 7