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

Track lib changes ?

(1/4) > >>

Kalith:
Hi !

First, I'm sorry if this subject has been discussed before, but I couldn't find anything related in the forum.
So here goes : currently, when you modify a .cpp or a .h file and press Ctrl+F9, Code::Blocks rebuilds the necessary files and links everything together.
My "problem" is : I'm developing a project that depends on several libraries that I wrote myself. From time to time, I need to do some adjustments in these libraries, so I do these changes and compile the library.
Now I need to test it in my main program. If I switch to the main program's project and press Ctrl+F9, C::B does nothing and tells me everything is up to date, while it is clearly not the case. Actually, I don't need C::B to compile any file : I just need to "link again".
I thought C::B would find out that the library file (.a) has changed, and links everything once again.

Right now, my solution is to go into one of the main project's code file, add a line jump and delete it right away. Then I press Ctrl+F9, and C::B compiles the "changed" file and links. But it's not handy at all.

Is there an option/button somewhere that I missed ? And if not, could it be implemented ?
Thanks for your time.

stahta01:
External Dependency is the term used; I have not done it myself.

Top search returned is
http://forums.codeblocks.org/index.php/topic,12959.0.html

Tim S.

Kalith:
You seem to be right !
That said, there seem to be a problem with this feature anyway.
I configured my main project to depend on 4 different other projects, but it seems to consider only 2 of them.
I think it comes from the name of the different build targets, which are different depending on the project.
Is there a way to fix this (anything but changing the target names, which I can't) ?

stahta01:
Look at virtual targets

huzhongshan:
you have to set dependancy in the workspace. the dependancy is saved in workspace (not in the project .cbp).

Navigation

[0] Message Index

[#] Next page

Go to full version