Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Type not found across project references
Type not found across project references [message #912843] Fri, 14 September 2012 09:25
Jan Klass is currently offline Jan KlassFriend
Messages: 1
Registered: September 2012
Junior Member
When I use a type from another project, which I included in the project references, eclipse tells me the type is unresolveable.
However, I can navigate to it via Open Declaration.

I was able to reproduce my issue in a fresh and small workspace:

* Create project1
* Create class class1 in project1
* Create project2
* Create class class2 in project2

Now let class1 inherit from class2

class class2 {};
class class1 : public class2 {};

In the project1s properties, add project reference under project references and C++ -> Paths and Symbols -> References, to project2.

In the class1.h file, the inherited from class2 is marked as unresolveable.
However, if I navigate to it (F3 / CTRL+click) eclipse finds it just fine.

Doing a
> try2 a;
instead of an inheritance produces the same issue.

It should be able to resolve the type after I add the project reference, shouldn't it?
Or do I have a misconception here?

I'm on WinXP x86, no working compiler setup as configured in eclipse.
Previous Topic:Eclipse using wrong version of g++
Next Topic:Indexer and "grey-background" problems with #ifdef in includes
Goto Forum:

Current Time: Mon Jun 18 14:00:52 GMT 2018

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

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

Back to the top