News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to prebuild a project before another one?

Started by otaco, May 29, 2007, 05:49:11 PM

Previous topic - Next topic

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?
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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......