I have a simple c++ project that I have added some .cpp and .h files to.
They are being compiled correctly but I want to use some #defines in main.c to set options etc.
If I put the #defines in the files where they are used everything is good, but if I put them in main.c then I get errors stating that they are not defined.
I suspect that this is because the other files are compiled first? Is there a way to force main.c to compile first?
I am using AtmelStudio 6
(EDIT) - Just to clarify, main.c is an ordinary c file and the "library" files are c++