IWishIKnew wrote: |
---|
Why should I use Projects? |
To make your project (your work) organize. Also some features of codeblocks works only if you use projects.
IWishIKnew wrote: |
---|
... why do you need linkers, what is a linker, |
First think how a program is built? Well according to the experts/books (not me), compiler turn your code to object files or binary files. The linker then builds the final executable binary that you can run on your system (like Microsoft Windows).
IWishIKnew wrote: |
---|
and how can you run a compiler without a GUI (or how to through com. prompt)? |
Yes, it's through cmd on windows. So you see, when you installed code::blocks you also installed Mingw Compiler (a GCC port on windows). What actually happens when you use codeblocks is that it uses Mingw on the background when you click the compiler button to make your life easier.
If you want to learn how to compile manually without and IDE. Search for gcc tutorial. If that doesn't work for you try this
http://www.youtube.com/watch?v=w2XLvEcSrgo There are also a lot of videos on youtube if that works better for you.
Additional Info:
Code::Blocks installer installs Mingw under C:\Program Files\CodeBlocks\MinGW\
The C++ compiler is: C:\Program Files\CodeBlocks\MinGW\bin\g++.exe
The linker is: C:\Program Files\CodeBlocks\MinGW\bin\ld.exe
So you see this two tools (compiler and linker) are command line tools.
Also try to enable html logging in code::blocks to see how the IDE uses the compiler and linker. Just goto Settings -> Compilers and Debuggers -> Others Settings [tab] then check
"Save build log to html file"
I hope that helps. Good luck!!