Author Topic: Link order / library finder  (Read 3311 times)

Offline Zini

  • Multiple posting newcomer
  • *
  • Posts: 64
Link order / library finder
« on: March 08, 2010, 12:06:16 pm »
I am currently experience a failure at link stage, which seems to be caused by libraries being listed in the wrong order. The problem is, that some of these libraries are inserted into the link command via the library finder (Project -> Properties -> Libraries) and some via the project settings. From what I see library finder always comes before project settings, which is exactly the opposite of what I need. Is there a way to reverse this?

Actually I think that would be a more reasonable default behaviour, because libraries that can be handled via pkg-config are unlikely to depend on libraries that can not be handled via pkg-config.

Code::Blocks rev 5892
Ubuntu 9.04 64 bit

Offline Zini

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: Link order / library finder
« Reply #1 on: March 09, 2010, 12:37:31 pm »
A little update on this problem: I seems that my previous interpretation was wrong. I have added one of the libraries that caused me problems to the library finder manually. And now the link order seems to be:

pkg-config entries in library finder, project settings, other entries in library finder

which obviously is no good at all.