Author Topic: compiler dont work pliz help  (Read 3699 times)

Shan

  • Guest
compiler dont work pliz help
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: compiler dont work pliz help
« Reply #1 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.