User forums > Using Code::Blocks
Trouble compiling/linking
stahta01:
--- Quote from: Svalorzen on May 10, 2012, 01:40:02 pm ---Is it the only way? Mostly because I'm not sure what libraries are those, I just pasted a script.. also it does not sound incredibly efficient.
If it is I'll do it though.
--- End quote ---
You can do whatever you want.
Bye, I will not likely be answering any of your future questions.
This site is NOT used to teach programing.
Tim S.
Svalorzen:
What does that even have to do with programming?
I have a line script that works, and I'm trying to get Code::Blocks to reproduce it.
I'm trying to understand if there is a way to specify orders in the linker options vs linker libraries.
Why do you have to be so harsh? My program compiles so definitely it IS NOT a programming question.
stahta01:
If you do NOT know what a library is then you do NOT know enough to program.
I will help you this time; but, you need to learn how to program.
--- Code: ---g++ -I..\fltk-1.3.0\ -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 'main' main.cpp -mwindows ..\fltk-1.3.0\lib\libfltk.a -lole32 -luuid -lcomctl32
--- End code ---
The clear libraries in your above command are
ole32
uuid
comctl32
The not so clear one is
libfltk.a
You need to really know the difference between compiler and linking to understand some basic things in programming.
If you DO NOT wish to use an IDE do NOT do so; do NOT complain that it is NOT efficient because you need to learn something.
NOTE: The efficient way to program may or may NOT be with an IDE; but, you do not seem to know the basic needed to judge which is more efficient.
Tim S.
Svalorzen:
I'm sorry if you did wake up extremely angry this morning, you should seriously vent some other place.
I'm not complaining about anything, the only thing I was saying was inefficient would be searching manually for the ole32, uuid and comctl32 libraries within my filesystem and add them to the Linker Settings->Linker Libraries instead of using the Linker Options which should be the expected solution, since linking options are used in every project in existence.
There is nothing else to understand, as you said I probably have to change the library linking order but I cannot see ways to mix the order of Libraries/Options together, I only saw options to prepend ALL of the Options to the Libraries or append ALL of them to the Libraries.
Again, it's the only thing that I'm asking and if you don't feel like answering but only attack me I kindly ask you to not do that, I'll wait for some more helping person.
stahta01:
Please READ the Rules
http://forums.codeblocks.org/index.php/topic,9996.0.html
There is something worse than ignorance, and that's knowing what ain't so. - Mark Twain
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version