User forums > Using Code::Blocks
Trouble compiling/linking
Svalorzen:
Sure man.
--- Quote ---5. Before posting, look where you post. There's the "Using CodeBlocks" board to help newbies set up their compilers and change their configuration.
--- End quote ---
Whoop de doop, that is what I am trying to do. Now please just stop.
Svalorzen:
I manage to fix the order by putting everything into the Linker/Compiler Options and by not using the Search Directories nor the Linker Libraries. I still don't think this is an ideal solution, but it works.
However one single linker error still remains. I've copied the EXACT same command that Code::Blocks shows on the command prompt and there it works fine. I really don't understand this.
Is the IDE not telling me all the things it is effectively doing?
oBFusCATed:
-l is equivalent to putting the library in the options
-L is equivalent to putting the path in to the linker search path
Are you sure you use the same compiler in c::b and outside c::b?
Don't post the build logs as images, because then searching for them in google is problematic.
Also don't attach images directly, but use an image hosting service and post links. This is because the space on the forum is limited.
See this:
http://www.allegro.cc/forums/thread/610175
http://stackoverflow.com/questions/9703266/itpp-link-undefined-reference-to-chkstk-ms-using-qtcreator
Svalorzen:
Thanks! It turns out, in fact, that they were not and I completely forgot of the MinGW installation within the Codeblocks directory. After I setup CodeBlocks to use the same one as the prompt one it works just fine. My bad again.
I didn't know I shouldn't attach images, I assumed the option was there to be used. I won't do it again! =)
And I attached the image just to show that the scripts were the same.
Since you responded I'll just ask again my first problem: is there actually a way to pick the order in which Linker Options and Libraries gets printed out?
oBFusCATed:
--- Quote from: Svalorzen on May 10, 2012, 07:53:32 pm ---Since you responded I'll just ask again my first problem: is there actually a way to pick the order in which Linker Options and Libraries gets printed out?
--- End quote ---
Top-to-bottom translates to left-to-right. If you ask for the library order in the linker command, of course.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version