News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

compiler dont work pliz help

Started by Shan, January 02, 2009, 12:09:11 PM

Previous topic - Next topic

Shan

when i compile in Build log write
cc1plus.exe: warning: command line option "-Wmain" is valid for C/ObjC but not for C++
cc1plus.exe: error: unrecognized command line option "-Wfatal-errors"
and in build messeges:
warning:command line option "-Wmain" is valid for C/ObjC but not for C++
i was make program in C language
pliz help what i shoud do i need somr patch or that are settings
pliz tell me what i shoud do to good work compiler

Jenna

You obviously have a c++ project.
C::B decides between c and c++ by the file-ending (.c for c and .cpp for c++).

And you have most likely a really old compiler, because it seems not to know "-Wfatal-errors".
Use a more recent one, or uncheck the appropriate boxes in the build-options.