Author Topic: How to prebuild a project before another one?  (Read 4510 times)

Offline otaco

  • Single posting newcomer
  • *
  • Posts: 4
How to prebuild a project before another one?
« on: May 29, 2007, 05:49:11 pm »
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...
« Last Edit: May 29, 2007, 05:51:01 pm by otaco »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: How to prebuild a project before another one?
« Reply #1 on: May 29, 2007, 08:42:19 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

moejoe

  • Guest
Re: How to prebuild a project before another one?
« Reply #2 on: July 26, 2009, 10:16:06 pm »
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......