Author Topic: 2 projects in one workspace  (Read 3164 times)

Offline jimmyo

  • Single posting newcomer
  • *
  • Posts: 9
2 projects in one workspace
« 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

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: 2 projects in one workspace
« Reply #1 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

Offline jimmyo

  • Single posting newcomer
  • *
  • Posts: 9
Re: 2 projects in one workspace
« Reply #2 on: August 10, 2007, 03:13:49 pm »
Thanks for help.

   Jimmy

Offline Jan van den Borst

  • Multiple posting newcomer
  • *
  • Posts: 99
Re: 2 projects in one workspace
« Reply #3 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

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: 2 projects in one workspace
« Reply #4 on: August 10, 2007, 03:46:54 pm »
Yes you should.

Dje