Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » "Project" containing several libs and one executable
"Project" containing several libs and one executable [message #209017] Thu, 31 January 2008 17:55 Go to next message
Eclipse UserFriend
Originally posted by: andreas.ronnquist.meritkonsult.se

Having a "project" containing several cdt projects (one executable, and several libraries) - is it possible to configure CDT to link and execute the executable project when doing a "Run" in either of the libs?

As it is now - when building one of the libs I have to go to one of the files in the executable project, and there make a modification, and rebuild to get the executable to rebuild (link). When being in one of the libraries project and pressing Run (understandably) results in "No executable target" or similar message.

What I would like would be to be able to do a "Run" on one of the libraries that the project contains, and make that build the necessesary files of the libraries, PLUS linking the executable and running.

Is it possible?

I have "Project References" setup so that each project references the projects they require to build are referenced. Is there more to do here? - Reference the other way around also?

This is on Windows XP - MinGW - Eclipse 3.3.1.1, CDT 4.0.2.

Help would be much appreciated.

/Andreas
Re: "Project" containing several libs and one executable [message #209066 is a reply to message #209017] Sun, 03 February 2008 06:34 Go to previous message
Eclipse UserFriend
You can't run a library, you must run your executable which should trigger a
remake if you set your dependencies properly.
Either define separate projects for each library and executable or create a
custom makefile.
Setting "Run/Debug -> Launching -> Always launch previous application" might
be useful.

"Andreas R
Previous Topic:cygwin debugger path mapping
Next Topic:Managed C++ Projects: a figment of my imagination?
Goto Forum:
  


Current Time: Fri Apr 25 18:40:00 EDT 2025

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

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

Back to the top