Author Topic: linking problem  (Read 4410 times)

lud2k

  • Guest
linking problem
« 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/

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: linking problem
« Reply #1 on: September 20, 2006, 12:35:49 am »
In executable project's properties (Project->Properties), add the static lib as an external dependency.
Be patient!
This bug will be fixed soon...

lud2k

  • Guest
Re: linking problem
« Reply #2 on: September 20, 2006, 12:43:53 am »
yeaaah :-)
it's working.
Thanks a lot :-)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: linking problem
« Reply #3 on: May 07, 2008, 04:06:46 pm »
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 )

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. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]