Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cmake and 'type can not be resolved' errors(Code in a CMake project is full of errors while the same code in a managed build project has no errors)
Cmake and 'type can not be resolved' errors [message #1856919] Mon, 09 January 2023 13:54
Ben Engbers is currently offline Ben EngbersFriend
Messages: 20
Registered: July 2009
Junior Member
After setting up the same directory structure as in a C managed build project, I copied the .cpp and the .h files to the new structure, executed the command
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug  .

and imported the project to Eclipse.
The original code had no errors. The code in the new CMake project is full of errors. Include files can not be found and all kind of symbols like 'std' can not be resolved.

Another project was copied to a CMake project in the same way. But this project does not show any errors...

Is this caused by different settings in CMakeLists.txt?
In the properties menu, there is a section for C/C++ Include Paths and Symbols. Should I enter a / which path here?

Ben

[Updated on: Mon, 09 January 2023 14:30]

Report message to a moderator

Previous Topic:Cmake and C++ dialect
Next Topic:CMake + Include/Exclude files from build GUI Interface
Goto Forum:
  


Current Time: Mon Jan 20 03:48:27 GMT 2025

Powered by FUDForum. Page generated in 0.02740 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top