2023-10-29 07:40 PM
I have a compilation error when I switch from debug mode to release mode, as showed in the pic below:
What did I miss?
Solved! Go to Solution.
2023-10-29 09:48 PM
Check the Include Paths settings for the "Release" build vs prior "Debug" ones that worked and found the include file.
2023-10-29 09:37 PM - edited 2023-10-29 09:38 PM
Below are the compiling commands:
In the release case, two folders were omitted strangely by the IDE.
2023-10-29 09:48 PM
Check the Include Paths settings for the "Release" build vs prior "Debug" ones that worked and found the include file.
2023-10-29 10:02 PM
I thought IDE would take care of that. :thinking_face:
I just did and the compilation error is gone; but got error of undefined reference to a few functions. I guess there is still some diff in setting details.
I am trying to optimize my code to increase its running speed.
2023-10-29 10:18 PM
Depends, the IDE treats the two contexts differently, so if you, or whomever created the project, add paths to one they won't automatically appear in the other.
The Release built typically enables optimization, removes assert and other verbose debug information. How much it improves things depends on the code, but it should shrink the size, and increase the speed in measurable amounts. Review the .MAP file output, and perhaps benchmark your critical code.
2023-10-30 01:38 AM
It looks to me Debug and Release are two totally different projects.
I have to add source folders other than Core and Drivers manually to project Release mode. Otherwise, IDE won't compile them, thus leading to linking errors.