Shows errors but compiles sucessfull Posted by derItist on 2017-05-27 16:00 Hi, i have some trouble with the new Version from 17.05 2015. I compiled an working C++ Project and get 27 Errors (problems) but it seems that the project is succesfully compiled. Any ideas? Greetz Oliver OpenStm Error.PNG (30.89 Kb)
Posted by derItist on 2017-05-28 11:58 Hi, here some more information. I have this this files COscillator.cpp and COscillator.h .The .h file is included into the COscillator.cpp and the main.cpp file. In main i create a COscillator object and call some public methods. I the main i get the following error: Type ‘COscillator’ could not be resolved But the compiler creates the .elf file which is fully working. Anyy ideas? I deleted the 2 files and wrote them new. Same problem. The Project was running with the previous version of System workbench without problems. Any ideas? Greetz Oliver
Posted by MarkV6 on 2017-06-06 10:05 It seems all my projects have this problem since the new 2017 2.0 version. There are 64 error but building was OK. All error are constants not found in code gernerated by CubeMX. ctrl-click on the variabes or constants does work. Cleaning and close the project helps sometimes but problems are back after building again. It is realy anoying because real errors are hard to find between them. The real errors are displayed with a different red cross.
Posted by derItist on 2017-06-06 10:27 Hi, i created a new project and copied the the old files into the new project. Now the errors were gone. greetz Oliver
Posted by dautrevaux on 2017-06-06 14:21 Hi Oliver, These errors occur when Eclipse had problems indexing your project. To correct it you can just right-click on the project then “Index >> Rebuild” and, after a few seconds, the errors should disapear. Hope this helps, Bernard (Ac6)
Posted by derItist on 2017-06-06 14:26 Hi Bernard, i habe tried the index rebuild several times before only importing the files in a new project ssolved the issue. Greetz Oliver
Posted by derItist on 2017-06-06 14:26 Hi Bernard, i habe tried the index rebuild several times before only importing the files in a new project ssolved the issue. Greetz Oliver
Posted by awneil on 2017-06-07 14:55 This is quite a common occurrence with Eclipse. If just rebuilding the index doesn’t work, try also a clean & rebuild of the entire project; refreshing the project; closing & re-opening the project; restarting Eclipse; etc ...