I don't understand why but I'm failing to compile supersimple C code in two files when there are some references between them. I'm using Visual Studio 2010, opening Empy C++ project Here it is:
main.c:
extern void putc(char c);
int main() {
char c = ' ';
putc(c);
return;
}
anotherfile.c:
void putc(char c) {
}
I'm getting these errors:
I think it will be in some project configuration, but I don't have any idea where....
Please help.
In the VC2012 project, please disable the Precompiled Headers
option. This should resolve the compilation issues faced by you.