Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: lud2k on September 20, 2006, 12:06:14 am
-
Hello,
I've a little problem.
I've a Workspace with two projects, the first project is a library and the second project is an executable using the functions of the library. I've put the library (first project) as a dependence of the executable so when i compile the executable, it compile both projects if the library is not up to date.
The problem is : when i build the executable (and I only edited the library), it compiles the library but not the executable so it does not link the new library just compiled.
Actually I'm using "Rebuild" on the executable so it compiles the library (only the changes so it's fast) and it build all files of the executable and it links them all (very very slow :-( ).
Is there any way by using pre-build or post-build commands (or any other methods) to say to C::B to link the library to the executable even if the executable is up-to-date ?
Thanks a lot
Ludovic Cabre
http://sd-2016.dedibox.fr/
-
In executable project's properties (Project->Properties), add the static lib as an external dependency.
-
yeaaah :-)
it's working.
Thanks a lot :-)
-
Hello,
Is this feature still working, Because I have a similar setup, but can't get it to work? :(
Can someone explain the steps to achieve the effect?
I looked at the wiki but the info looks too outdated ( wiki article (http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks#Using_project_dependencies) )
I'm using linux if it make any difference (I suppose no).
Best regards,
Teodor Petrov
p.s. If it is serious problem that I have risen this thread from the dead, feel free to contact me and I'll start another one. :)