When I use c++, and I modify .iot file, it doesn't generate the code anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-05 12:01 AM
To use cpp, I create the project in cpp and then I modify the name of main.c in main.cpp. This work pretty well, but when I try to update the configuration by ioc file, the code stay the same. It seems like I have to change to main.c before update to be fine. Do it exists a more easy way without modify the main extension everytime? Ty
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-05 6:58 AM
CubeMX doesn't generate main.cpp. You can put your C++ code in a separate file instead, and call that from main.c. Or you can rename main.c every time. Those are your options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-05 6:58 AM
CubeMX doesn't generate main.cpp. You can put your C++ code in a separate file instead, and call that from main.c. Or you can rename main.c every time. Those are your options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-05 2:56 PM
Patient: - Doctor, when I do this, it pains!
Doctor: - Don't do this.
