Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Shan on January 02, 2009, 12:09:11 pm

Title: compiler dont work pliz help
Post by: Shan on January 02, 2009, 12:09:11 pm
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
Title: Re: compiler dont work pliz help
Post by: Jenna on January 02, 2009, 01:11:57 pm
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.