Posts: 196
Threads: 31
Joined: Apr 2010
Reputation:
1
05-21-2010, 06:50 PM
(This post was last modified: 05-21-2010, 06:59 PM by Fallenour.)
So yea, im finally entering into the coding field, I should be up and running, and making programs within a month or so, anything yall would like to see program wise?
Ok so its talking about linking, but I dont have anything to link with do I?
Posts: 93
Threads: 4
Joined: Oct 2009
Reputation:
5
05-22-2010, 07:44 AM
(This post was last modified: 05-22-2010, 07:46 AM by MrD..)
Linking is the step where the separate compilation units are joined together, in the case of using external libraries, this is also where the library code is linked into your application code.
You can get a variety of linker errors, the most common ones I would expect you to see would be an 'unresolved external symbol' where you have declared something but not defined it, or a 'multiply defined symbol' error where you have managed to put something in a header file such that it is duplicated into multiple compilation units instead of being referenced by multiple compilation units.
tl;dr Learn what the C++ compiling process involves (pre-processing, compilation, linking)
Also, this should really be in the C++ programming forum. Can a mod move it?
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
Posts: 196
Threads: 31
Joined: Apr 2010
Reputation:
1
ok, but how do I actually "do" the linking? do I need a tool or something?
Posts: 93
Threads: 4
Joined: Oct 2009
Reputation:
5
It's a step your compiler does, what IDE/compiler are you using?
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
Posts: 93
Threads: 4
Joined: Oct 2009
Reputation:
5
... you have to have something. What have you been using to try and make your C++ apps so far?
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
Posts: 196
Threads: 31
Joined: Apr 2010
Reputation:
1
umm...nothign? 8O am I supposed to? x.x
Posts: 18
Threads: 2
Joined: Oct 2009
Reputation:
0
I'd also recommend code::blocks, i've been using it for about a week now and its pretty good.