How to reference toolchain include files?
How to reference toolchain include files?
Hi
I have now updated E2 Studio to version 5.1 and installed the latest GCC toolchain for RX (GCC for Renesas 4.8). To make sure I made the install correctly, i made a very small example where I dont really do anything but include files with empty functions.
When compiling I get an error on “#include <stdint.h>” that it fails to find the file.
I can however find it in the project tree under the compiler installation includes and I checked for error40 (from the keyboard and out / misspelling) multiple times and come to the same conclusion. A header file i created in the project was found, but the one above was not.
Is there a known bug or did I miss something in the include reference settings?
Regards
Michael
Hello Michael,
First of all, we would like to let you know there is no stdint.h on optlib(yet). You should switch to newlib if that’s the case.
Then, if you’re using your own makefiles(not the ones generated by e2Studio) or just calling rx-elf-gcc on the command line, you should specify include paths with “-I” option. We would, however, not recommend mixing newlib’s and optlib’s include paths.
A better, more complete and to the point answer could be provided if we get a chance to look at your project. So please send that to us.
-–
Best Regards,
Grigore Dobra,
The GNU Tools Team
Hello Michael,
As said before, optlib does not contain a stdint.h yet; please make sure to select newlib when creating your project. We also do not recommend mixing include paths of optlib and newlib.
You can also change your library type any time from Properties|C/C++ Build|Settings. Then under Library Generator|Settings you can select optlib or newlib.
-–
Best Regards,
Grigore Dobra,
The GNU Support Team