User forums > Using Code::Blocks

Code::Blocks + MingGW doesn't link static lib.. HELP !

<< < (2/3) > >>

oBFusCATed:
Choose your app project -> right click -> properties  -> build targets -> dependencies -> external dependency files -> add you lib file

Feneck91:
That what I have said :
--- Quote from: Feneck91 on January 23, 2010, 11:03:31 pm ---I know a way : Into Project/Targets options, with dependencies button I could make a dependencies to lib files but it is strande to must do it manually.

--- End quote ---
But I continue to think... it strange that the compiler not the the lib have changed automatically...
I had the external dependencies, it's work...

oBFusCATed:
I've replied to you in order to verify that we are talking about the same thing.

Morten: Can we add some hocus pocus for this? Also I'm for adding (in a user controlled way) the hocus pocus you mentioned in your VC hate post :)
Can you say what are the implementation problems?

MortenMacFly:

--- Quote from: oBFusCATed on January 24, 2010, 10:49:44 am ---Can you say what are the implementation problems?

--- End quote ---
Look: C::B handles dependencies just fine. It's really just a matter of the project setup. You can setup project dependencies and order the targets in a project as need and all will work just fine. If you create a virtual target across all projects in a workspace that will compile the modules as needed your compile process will never fail. In addition I usually resolve missing linker symbols step by step which ensures the right order automatically. Remember that you only have to do it once.

There is really no hocus-pocus needed. Just knowledge about your dependencies and a correct project setup.

oBFusCATed:

--- Quote from: MortenMacFly on January 24, 2010, 01:53:43 pm ---There is really no hocus-pocus needed. Just knowledge about your dependencies and a correct project setup.

--- End quote ---

I know how to do it. But I also know that C::B can do it for me  :lol:
The question is can we implement it reliably?  :lol:
And what are the possible problems?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version