C++, Eclipse, Project References



  • I am developing C++ application using Eclipse.

    My application is divided into more than one project.

    I want one of these projects to include and use the source files from the other project.

    Both projects are in the same workspace.

    What is the best way to solve this?

    Thanx a lot!



  • It should be possible to set the include paths in that way. Check out the preferences and project properties. (Project -> Properties then something like C++ Include Path or so).



  • Yes, you are right! There is a possibility to use the other project as a library and it should be so. In the project properties there is "project references" menu punkt and you can set there a reference flag to any other project in the workspace. As I know this in Java this works well. But in C++ not. Why? What should I do so that i can use this...



  • Honestyl, I have no idea because I use Eclipse for PHP and web development and for C++ I'm using MSVC++ Express Edition where you can set the include paths easily. Do you really need Eclipse? I'd rather recommend VC++ an its delivered compiler than Eclipse..


Anmelden zum Antworten