Author Topic: no dependency on linked libraries  (Read 5103 times)

Offline philippe.quesnel

  • Multiple posting newcomer
  • *
  • Posts: 14
no dependency on linked libraries
« on: January 02, 2008, 10:09:54 pm »
hi,
 :shock: .. it seems that CB does not relink an application when a linked library has changed.
(can be very annoying: do a change in a lib, build .. look for bug !!! .. oops : CB did not link app !)

Even when the library is another project in the same workspace,
and the main app project has a dependency on the lib, it does not link the app.

kinda funny actually, CB sees the change in the src code of the lib & rebuilds the lib ...
then just ignores the newly built lib & says the app is 'up to date' !!  :P

I havent entered this as a bug (yet) ...
maybe I'm missing something somewhere ??
("Libraries used in project" in "Project Options" ?? everything is empty ?)

thx
Philippe

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: no dependency on linked libraries
« Reply #1 on: January 02, 2008, 10:24:20 pm »
Does the main project have an dependency on the lib project?

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline philippe.quesnel

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: no dependency on linked libraries
« Reply #2 on: January 03, 2008, 03:23:34 am »
Does the main project have an dependency on the lib project?

Tim S

yes it does.
CB correctly builds the lib through the dependency when I do a build on the main app,
it just doesn't relink the main app.

same thing with an 'external' lib, if it changed, CB will not rebuild the main app.
says : 'up to date'

thank you

Offline wobien

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: no dependency on linked libraries
« Reply #3 on: January 03, 2008, 01:16:00 pm »
I reported the same (or similar) problem here
regards,
Wobien

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: no dependency on linked libraries
« Reply #4 on: January 03, 2008, 02:34:50 pm »
Static libs are a special case which is not handled by the projects inter-dependency mechanism.
You should add the lib as an external dependency for this to work: project->properties->[select target]->external dependencies.
Be patient!
This bug will be fixed soon...

Offline philippe.quesnel

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: no dependency on linked libraries
« Reply #5 on: January 04, 2008, 12:01:06 am »
ah !
never noticed that button before !

thank you,
problem solved !

Offline CBLaw

  • Single posting newcomer
  • *
  • Posts: 8
Re: no dependency on linked libraries
« Reply #6 on: March 29, 2009, 03:46:29 am »
Yes - Thank-you. Problem solved! :D This had been making me miserable for quite some time!