[fatal error in compiler of E2 Studio] lcd.h, No such file or directory

Hi all,

**The problem is I already put lcd.h in r_main.c's tree(as firgure 1),

and when I even press "Ctrl"+"Click left mouse" at "lcd.h" word in "#include "lcd.h" of my code, it can open file lcd.h!

but when compiler it(Build All),  

error is: make -j4 all
'Scanning and building file: ../src/r_main.c'
'Invoking: Scanner and Compiler'
../src/r_main.c:40:17: fatal error: lcd.h: No such file or directory
 #include "lcd.h"
compilation terminated.
make: *** [src/r_main.o] Error 1
src/subdir.mk:155: recipe for target 'src/r_main.o' failed

compilation terminated.


I also tried this solution in link: https://renesasrulz.com/e2studio/f/e2studio-forum/5022/stdbool-h-no-such-file-or-directory-include-stdbool-h

But it did not work.

1. In case you are using e2 studio, please select Newlib library via Project > Properties > Settings : Tool Settings > Library Generator > Settings >  Select library : Newlib     2. Click Apply and OK.

[Figure 1] 



  • Is lcd.h included in the project? Is the folder that includes lcd.h in included in the preprocessor include settings?

    When using the RL78 code generator I recommend to put all of your own files into a different folder than src. Leave the src folder for generated code only.