User forums > General (but related to Code::Blocks)

still trying to figure out where to put a (i think its called) a linking directi

<< < (2/2)

sodev:

--- Quote from: userx-bw on August 14, 2017, 06:26:43 pm ---and I am less then  an average programmer

--- End quote ---
I totally agree on that! And because of that it seems you are missing some basic information about what is going on here.

CodeBlocks is not a compiler, its basically a frontend for a compiler. The compiler you are using is gcc and the error you are seeing is from gcc, not CodeBlocks.

Why does code completion of CodeBlocks know about all these X11 headers? Because you told CodeBlocks where to look for them and, big surprise, you told CodeBlocks the correct location?

But why isnt gcc happy with your headers? Well, the compiling stage is, but the linking stage isnt. Because the linker gives a fuck about your headers, all it cares about is libraries.

So you only told CodeBlocks where the headers are which CodeBlocks told gcc, but you didnt tell CodeBlocks where the libraries are so gcc complains about.

So no bad programming here, only bad user here, this cannot be fixed from this side. And before you cry more, it is and has always been the responsibility of the user to setup his compiler environment.

Jenna:

--- Quote from: userx-bw on August 14, 2017, 06:26:43 pm ---bad programming, and I am less then  an average programmer and can see that.

--- End quote ---
With that attitude, you will never become even a beginner in programming.
It's often not easy to understand even simple programs, written by others, fully.
But Code::Blocks is by far not a simple program, with it's core and plugins.

Navigation

[0] Message Index

[*] Previous page

Go to full version