Hi, I'm programming a small Pinball game using codeblocks and SDL library. I have 6 sources and 7 headers, both in separate folders inside the project. 'main' is inside the project folder, separate from both '.cpp' and '.h'. In the headers build options I have them to be compiled and linked. When I build the project from scratch, it starts precompiling headers and then linking the sources, but in the end it throws the following error:
/usr/bin/ld:include/GUI.h.gch |1| syntax error|
||=== Build finished: 1 errors, 0 warnings (0 minutes, 28 seconds) ===|
When I used the #include directive, I had to use something like this:
#include "../include/somefile.h"
I can't find what am I doing wrong, so any help is greatly appreciated!
Thanks in advance.
Enzo.