Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jimmyo on August 10, 2007, 09:16:19 am

Title: 2 projects in one workspace
Post by: jimmyo on August 10, 2007, 09:16:19 am
Hello,

i have 2 projects in one workspace.
the first project create a dynamic library (*.so)
and the second create a executable to thest this
dynamic library.
the executable project is the active project.
if i change something in the first project, it does not
compile it at F8. Is there a way to set a build dependency ?

Thanks.
  Jimmy
Title: Re: 2 projects in one workspace
Post by: dje on August 10, 2007, 10:31:32 am
Hi !

Right click on your exe project and click on Properties...
Click on Build targets tab and then on the dependencies button.

Dje
Title: Re: 2 projects in one workspace
Post by: jimmyo on August 10, 2007, 03:13:49 pm
Thanks for help.

   Jimmy
Title: Re: 2 projects in one workspace
Post by: Jan van den Borst on August 10, 2007, 03:42:33 pm
Hi Jimmy,
I'm having similar issues with static libs. If I make a static lib in project 1 and use it project 2, the second project doesn't relink when the lib has changed. In project 2 I added the lib in the linker settings.

Must I really set the external dependency (by hand) even if I added the lib in the build options of the 2nd project?

Jan
Title: Re: 2 projects in one workspace
Post by: dje on August 10, 2007, 03:46:54 pm
Yes you should.

Dje