Issue including <string> in eclipse

superpaulo
Posts: 4
Joined: Wed Feb 28, 2018 12:20 am

Issue including <string> in eclipse

Postby superpaulo » Wed Feb 28, 2018 12:32 am

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)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Issue including <string> in eclipse

Postby ESP_Angus » Wed Feb 28, 2018 9:42 pm

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?

superpaulo
Posts: 4
Joined: Wed Feb 28, 2018 12:20 am

Re: Issue including <string> in eclipse

Postby superpaulo » Wed Feb 28, 2018 10:13 pm

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

superpaulo
Posts: 4
Joined: Wed Feb 28, 2018 12:20 am

Re: Issue including <string> in eclipse

Postby superpaulo » Tue Mar 06, 2018 3:54 pm

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 ?

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 96 guests