Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » .h not recognized as C++
.h not recognized as C++ [message #1853207] Wed, 22 June 2022 19:00 Go to next message
Michael Miner is currently offline Michael MinerFriend
Messages: 1
Registered: June 2022
Junior Member
Hello,

I am using Yocto to create an embedded linux application. I have add a tool from GitHub that is built using CMake and is written in C++. Every header file in the project is marked with .h and not .hpp. I have used the Yocto project to build this code and place it in /usr/lib and /usr/include as a library. My IDE can find the code, include it and interact with it.

My code in eclipse is a C++ project which using many files that are C++ or C in nature. When compiling this the library header files are treated as C and not C++. I get errors about basic C++ syntax.

Is there a way to tell eclipse to include this library as C++ and interpret it all as C++?
Re: .h not recognized as C++ [message #1853498 is a reply to message #1853207] Tue, 05 July 2022 14:57 Go to previous message
tepalia02 02 is currently offline tepalia02 02Friend
Messages: 21
Registered: April 2022
Junior Member
Hi, was this guideline of any help?
https://www.ics.uci.edu/~pattis/common/modules46/courselibmac.html
Previous Topic:Multiple CDT embedded targets
Next Topic:Docker invalid volume specification
Goto Forum:
  


Current Time: Sun Aug 14 07:22:23 GMT 2022

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

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

Back to the top