It has no relation with any other file; I was just checking how to use the namespace.
The file where is the main function it looks like:
#include "function_call_extern.h"
main()
{
}
When I build my project I get the errors:
error C2061: syntax error : identifier 'first' c:\documents and settings\sferrandiz\mis documentos\visual studio 2010\projects\test.c\test.c\function_call_extern.h line 4 column 1 test.c
error C2059: syntax error : ';' c:\documents and settings\sferrandiz\mis documentos\visual studio 2010\projects\test.c\test.c\function_call_extern.h line 4 column 1 test.c
error C2449: found '{' at file scope (missing function header?) c:\documents and settings\sferrandiz\mis documentos\visual studio 2010\projects\test.c\test.c\function_call_extern.h line 5 column 1 test.c
error C2059: syntax error : '}' c:\documents and settings\sferrandiz\mis documentos\visual studio 2010\projects\test.c\test.c\function_call_extern.h line 8 column 1 test.c
I am using VS 2010. I am getting these errors but I do not know what I am doing wrong.
Hi Moschops, thank you very much for your quick answer.
When I added the new file I wrote .c, because I was trying to compile the code as a c code. So, although I took the option for a C++ file, I guess the compiler thinks it is a c file.