Search found 7 matches
- Mon Feb 17, 2020 9:32 pm
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
Thank you so much, My problem isn't a linker issue any more. My problems comes from one of the parameter of the methods been a double pointer which cause all my problems, still have to debug that one but maybe in another question. Probably should have notice that one since the constructor was doing ...
- Mon Feb 17, 2020 3:47 am
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
I thought those library could be compile in c++ since I don't put an extern C wrapper in all my c++ project but anyway it's something I had already tried and just in case tried again but no change. Here is the console log after I cleaned the project: console_log.txt If there is a better way to send ...
- Sun Feb 16, 2020 7:37 pm
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
Hi, It does help because now I understand more about how it works. Unfortunately, I am still getting the same error even after cleanning and recompiling. Here are the change I did : -I got rid of the extern C wrapper in the spi.cpp -Here is the spi.h now esp-idf bug #9.png -Here is the main.cpp esp-...
- Sun Feb 16, 2020 2:56 am
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
Hi, Lee
Just like you said, I'm getting linker issue. The problem is still appearing even after following all you said to do.
I included a tar ball with my project because now I really don't know what to do Thanks
Dythe
Just like you said, I'm getting linker issue. The problem is still appearing even after following all you said to do.
I included a tar ball with my project because now I really don't know what to do Thanks
Dythe
- Fri Feb 14, 2020 2:14 pm
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
Hi Lee, Thanks for the confirmation of the whole procedure. The only thing I'm not doing at the moment is to put the #include in the extern C. While waiting for my last message to be approved I realise my problem with the compilation failling at step 817/820 was because you should NEVER compile a pr...
- Wed Feb 12, 2020 4:15 pm
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
Re: How to programm in c++ / How to execute void app_main(void) in c++
Hi Angus, Thanks for your solution, you were right that I needed to include the class '.cpp'. I also had to include the main.cpp in my class cpp to make it work. But today I realised maybe it didn't work because the build failed at step 814 out of 817 with the message : FAILED: esp-idf/esp32/ld/esp3...
- Sun Feb 09, 2020 5:05 pm
- Forum: ESP-IDF
- Topic: How to programm in c++ / How to execute void app_main(void) in c++
- Replies: 13
- Views: 18933
How to programm in c++ / How to execute void app_main(void) in c++
Hi, I am using the ESP-IDF V4.0 with the Eclipse plug in and I would like to use C++ to programm. Unfortunately, in the past week, I did'nt found that solution. What I found was to use "extern C app_main()" but this only compile the main with a C compiler witch mean I can write c++ code but not use ...