User forums > Using Code::Blocks

Adding pkg_config to Code:Blocks linker

<< < (2/3) > >>

stahta01:

--- Quote from: JulyJim on November 23, 2016, 03:22:15 pm ---In theory it should not be used in compiler - it is a liker job to get the libraries.

--- End quote ---

So, you have no real knowledge of pkg_config it has options to output compiler flags that might be needed!
In the compiler extra settings area.

Tim S.

JulyJim:
I have some knowledge about pkg_config and there is no need to be so snippy about it.
( Read the rules before you post )

If I had 100% would I ask for help? 

The question still remain - how to add these "flags" to GCC compiler.
Can you post an example ?
Thanks

Jenna:

--- Quote from: JulyJim on November 23, 2016, 06:03:44 pm ---Can you post an example ?

--- End quote ---

Is my previous post hidden for you ?

I quotee it here:

--- Quote from: jens on November 22, 2016, 06:08:08 pm ---Just add the "pkg-config" line to the other linker (and probably compiler)-options, just as you do it on the command-line, but surround it with backticks ("`"), e.g.

--- Code: ---`pkg-config glib-2.0 --libs`
--- End code ---

--- End quote ---

Or what do you mean with example ?

stahta01:
FYI: You are on the Internet; it has search engines!
https://people.freedesktop.org/~dbn/pkg-config-guide.html

Learn to use them. I use https://www.google.com

You really need to learn about your OS Operating System and the tools in it!

You are appearing to be a troll to me. I do NOT feed trolls.

Tim S.
 

JulyJim:
Tim, you could be more helpful but I really expect way to much from forums.
Obviously situation normal - it is my fault I dare to ask here,


I have made some progress but still cannot get the pkg-config to link the libraries it finds to linker.
Just to clear things up - the question was not HOW to MAKE packages - the question was how to add them to the linker.
My GCC linker won't link if the  library string is not prefixed with ":"  so maybe pkg-config is wrong app to use, 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version