Content originally posted in LPCWare by mmoyano on Wed Oct 01 07:51:52 MST 2014
Hello
I'm building a project with LPCXpresso 7.4.0 and LPC1778 and I'm trying to compile the whole program (all sources is C plus one assembler .S file) and for each compile time I figured out that the "Assembler flags" have a new "-D" option at end of it. So for each compile time I can see:
-c -x assembler-with-cpp -D
-c -x assembler-with-cpp -D -D
-c -x assembler-with-cpp -D -D -D
-c -x assembler-with-cpp -D -D -D -D
... and so on.
With that "-D" option, the arm-none-eabi-gcc preprocessor cannot include a .h within the .S file. Here a piece of my .S file:
#define __ASSEMBLY__
#include "MxOS/include/boards/board.h"
#ifdef MCU_DEFINE
...
...
...
#endif
And if the preprocessor cannot include the .h file then it cannot compute the rest of assembler code based on the define MCU_DEFINE and all fails with the error:
fatal error: MxOS/include/boards/board.h: No such file or directory
I dont know if that issue is a bug o an error on my workspace.
I could fix the issue for each compile time by deleting all "-D" options of "Assembler flags"
Rergards!
Maxi