Struggling with "No such file or directory" problem
Posted: Sun Mar 24, 2019 10:06 am
Hi All,
This might be simple to some..I have tried searching the web and tried quite a few things but to no avail. I am not sure what i am missing so please hear me out.
I followed Espressif's excellent guide ceating a C project and managed to successfully build and flash the blinky. Openocd debugging works as well using an external FTDI module. C is OK. All working.
However, I have no success using C++ so far. I copied Kolbans gpio.cpp and .h files from his cpputils and incorporated it directly in my project as a form of basic sanity setup. I am not using it as a component.
It seems that that the header files are not available even though the intellisense is able to see it.
In short, i am unable to build if i include any header files from myincludes folder into my main.cpp since it complains as no such file or directory.
I am not sure what settings do i need to modify as i am not that familiar with Makefiles. Even the path looks weird with both backslash and forward slash present.
fatal error: myinclude/cpp_pwm.h: No such file or directory
make: *** [C:\msys32\home\Fadster\esp\esp-idf/make/project.mk:468: component-main-build] Error 2
Appreciate any kind guidance. Thanks.
best,
Fadster
This might be simple to some..I have tried searching the web and tried quite a few things but to no avail. I am not sure what i am missing so please hear me out.
I followed Espressif's excellent guide ceating a C project and managed to successfully build and flash the blinky. Openocd debugging works as well using an external FTDI module. C is OK. All working.
However, I have no success using C++ so far. I copied Kolbans gpio.cpp and .h files from his cpputils and incorporated it directly in my project as a form of basic sanity setup. I am not using it as a component.
It seems that that the header files are not available even though the intellisense is able to see it.
In short, i am unable to build if i include any header files from myincludes folder into my main.cpp since it complains as no such file or directory.
I am not sure what settings do i need to modify as i am not that familiar with Makefiles. Even the path looks weird with both backslash and forward slash present.
fatal error: myinclude/cpp_pwm.h: No such file or directory
make: *** [C:\msys32\home\Fadster\esp\esp-idf/make/project.mk:468: component-main-build] Error 2
Appreciate any kind guidance. Thanks.
best,
Fadster