PDA

View Full Version : main returns int -- compiler returns nonsense



Zach L.
06-15-2005, 09:32 AM
Sometimes, I rather hate compilers:

encs_driver.cc:16: error: extraneous `int' ignored
encs_driver.cc:16: error: `main' must return `int'
:rolleyes:

pianorain
06-15-2005, 09:48 AM
Heh...that's classic. Reminds me of this.

Govtcheez
06-15-2005, 09:53 AM
Obviously the 'int' you have in there right now is old and crusty. Replace it with a new, clean one and you should be golden.