User forums > Using Code::Blocks

How to prebuild a project before another one?

(1/1)

otaco:
Hi folks,
I work on a library (windows) and I want test the features of it with some test programs. So I created a workspace and imported the project of the lib and some projects that uses the lib.

Now my problem?
If I work on a test program using the lib, it often happens that I must change some code within the library (because I found a bug or something). Now I have to change to the lib-project compile it to a dll, compile it to a lib, change to my test-project an recompile that one.

Is there a a possibility to automate these steps?

Thanks for answers...

MortenMacFly:

--- Quote from: otaco on May 29, 2007, 05:49:11 pm ---Is there a a possibility to automate these steps?

--- End quote ---
Use project dependencies (project properties -> tab "project settings" -> button "project dependencies") and maybe dependencies to external files (e.g. your lib) in addition (project properties -> tab "build targets" -> button "dependencies"). For project dependencies you (surely) need to have the projects in a workspace.
With regards, Morten.

moejoe:
Hi@all

I have also a problem in using project dependencies in Codeblocks 8.02.

I have a static lib project(1) and a executable project(2).
Project dependencies ist setup to 2->1. After cleaning both projects I can not build 2 because the lib.a from 1 is not existing.

Why does not Codeblocks automatically create the lib?

Also defining the lib as external dependency in target dialog does not change anything.

Where is the trick?

please help......

Navigation

[0] Message Index

Go to full version