-
Notifications
You must be signed in to change notification settings - Fork 236
cannot open source file "omp.h" (dependency of "ESP8266WiFi.h" #776
Comments
Hi! You need configure your include path in the c_cpp_properties.json file. |
This issue has been automatically marked as stale and closed because it has not had recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions. |
The above reply is for an entry for the include path on a Linux machine ("/opt/arduino_1_8/**"), but don't know what the equivalent would be on a Windows machine? ... I have exactly the same error as Cictani above. Current include path is (some of which looks redundant to me):
|
I have the same problem on a mac. I can't find the location of omp.h, I tried to find it with find in terminal, no success. It would help to know Arduino IDE's include path. Google searches on this only explain what this is, not where... |
Same thing there.... I couldn't find it anywhere on my win 10 machine. A bit of googling suggested that it's part of OpenMP, which was included in gcc, but not in the xtensa-lx106-elf-gcc folder included in the esp8266 package. I installed gcc via WSL, and then found omp.h under %LOCALAPPDATA%\lxss\rootfs\usr\lib\gcc\x86_64-linux-gnu\5\include |
Same issue... macOS 10.14.6 I've tried many variations of the Include path, but now I'm back to |
Someone know how to fix it for windows? I have the same issue |
"includePath": [
<more stuff>
"<my home dir>/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2/tools/sdk/include",
"<my home dir>/Library/Arduino15/packages/esp8266/tools/**",
"<my home dir>/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2/**"
], The $ find ~/Library/Arduino15/packages/esp8266/tools -iname queue.h
<my home dir>/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/xtensa-lx106-elf/include/c++/4.8.2/parallel/queue.h
<my home dir>/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/xtensa-lx106-elf/include/sys/queue.h ...and the one of those it used tried to pull in the OpenMP stuff. The $ find ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2 -iname queue.h
<my home dir>/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2/tools/sdk/libc/xtensa-lx106-elf/include/sys/queue.h
<my home dir>/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2/tools/sdk/include/queue.h
<my home dir>/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.2/tests/host/common/queue.h but a) was already too late after the I think the |
OMG I am spending long time solving such issues more than coding... I have the exact same problem. |
OK, it turned out that I could fix it (or work around it), by specifying the path of the compiler, just like this:
|
Create an empty omp.h by yourself, and there is a relevant path. |
IntelliSense auto-generation has been added in v0.4.0. If you're having any problems with IntelliSense please open a new issue. |
I get the following error when trying to run my code which works fine if using arduino ide:
The text was updated successfully, but these errors were encountered: