hello
i want to use the #include <vector>,but i get a fatal error,
fatal error: vector: No such file or directory
11 | #include <vector>
i am using esp-idf,under visual code.
Any solutions?
Thanks
#include <vector>
-
MicroController
- Posts: 2661
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
-
kurtwerbrouck
- Posts: 10
- Joined: Tue Feb 16, 2021 2:37 pm
Re: #include <vector>
Then change it to be .cpp. The build system compiles .c files with a C compiler, and <vector> is a c++ thing.
Who is online
Users browsing this forum: ChatGPT-User, meta-externalagent, Qwantbot, Semrush [Bot] and 4 guests
