Page 1 of 1

Issue including <string> in eclipse

Posted: Wed Feb 28, 2018 12:32 am
by superpaulo
Hi !

I'm trying to import <string> from the STL but eclipse says "No such file or directory" rising an error.
I have included the directory "C:\msys32\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0" in C/C++ general -> Paths and Symbols -> Includes
Eclipse can open the header when i use the F3 shortcut.
I don't understand why it can't find the header when I build the project.
When I use "#include "C:\msys32\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\string", it works excepted for other header included in <string>.
The project was initially configured according to http://esp-idf.readthedocs.io/en/latest ... properties

Can you show what I am doing wrong please ? :)

Thanks !
(I'm sorry if my English is not really perfect)

Re: Issue including <string> in eclipse

Posted: Wed Feb 28, 2018 9:42 pm
by ESP_Angus
superpaulo wrote: I'm trying to import <string> from the STL but eclipse says "No such file or directory" rising an error.
...
I don't understand why it can't find the header when I build the project.
Are you getting the error in the Console when you build, or only in the code editor window?

Re: Issue including <string> in eclipse

Posted: Wed Feb 28, 2018 10:13 pm
by superpaulo
ESP_Angus wrote:Are you getting the error in the Console when you build, or only in the code editor window?
In the console. But after building, it appears in the code editor window too

Re: Issue including <string> in eclipse

Posted: Tue Mar 06, 2018 3:54 pm
by superpaulo
Do you have any idea about including successfully this library ?
The makefile needs to be modified ?
Is there settings to modify to compile the code in C++ and not in C excepted modifying the extension .c into .cpp ?