User forums > General (but related to Code::Blocks)

2 projects in one workspace

(1/1)

jimmyo:
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

dje:
Hi !

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

Dje

jimmyo:
Thanks for help.

   Jimmy

Jan van den Borst:
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

dje:
Yes you should.

Dje

Navigation

[0] Message Index

Go to full version