Hi this is the entire log from the compilation of a project:
Build started on: 24-10-2011 at 16:28.26
Build ended on: 24-10-2011 at 16:28.27
-------------- Build: Debug in trying_c_compiler_not_in_toolchain ---------------
mingw32-gcc-4.6.1.exe -Wall -fexceptions -g -Wshadow -Winit-self -Wredundant-decls -Wcast-align -Wundef -Wfloat-equal -Winline -Wunreachable-code -Wmissing-declarations -Wmissing-include-dirs -Wswitch-enum -Wswitch-default -Weffc++ -Wmain -pedantic-errors -pedantic -std=c++0x -Wfatal-errors -Wextra -Wall -g -ID:\Libraries\boost_1_47_0\boost_1_47_0 -IC:\metaprogramming_excersizes\trying_c_compiler_not_in_toolchain -IC:\metaprogramming_excersizes\trying_c_compiler_not_in_toolchain -c C:\metaprogramming_excersizes\trying_c_compiler_not_in_toolchain\pr.h -o pr.h.gch
cc1.exe: warning: command line option '-Weffc++' is valid for C++/ObjC++ but not for C [enabled by default]
cc1.exe: warning: command line option '-std=c++0x' is valid for C++/ObjC++ but not for C [enabled by default]
C:\metaprogramming_excersizes\trying_c_compiler_not_in_toolchain\pr.h:6:8: error: C++ style comments are not allowed in ISO C90
compilation terminated due to -Wfatal-errors.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 2 warnings (0 minutes, 0 seconds)
The entire project looks like this:
#include <iostream>
using namespace std;
#include "pr.h"
int main()
{
cout << "Hello world!" << endl;
return 0;
}
#ifndef PR_H_INCLUDED
#define PR_H_INCLUDED
/*Nothing in this file, not even this comment*/
#endif // PR_H_INCLUDED//here cb shows the erroneous line (because of the comment)
No, I do not have .c files.