Type not found across project references [message #912843] |
Fri, 14 September 2012 09:25 |
Jan Klass 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03505 seconds