Why do linkers suck?

Jan 26, 2008 17:18

Why the hell can't I just write working code and have it work? If I have class A and class B and class C and blah blah, and I compile their asses, why can't I link the shared object libraries that get shat out, include the .h files and write code that uses all the classes? Why does g++ insist on the lies ( Read more... )

Leave a comment

Comments 4

Programming demercio76 January 27 2008, 04:44:21 UTC
/* Insert Comment */
// Insert Comment

We used textbooks by the name of dietel back when I took some C++ and Java programming classes. They have sample code in the books and they walk you through the process. Visual Basic is also a good place to start if you are interested in learning the languages.

Reply


fallen42 January 27 2008, 07:12:51 UTC
A lot of times, if you copy/paste the linker error into google, you'll get a pretty good idea of what the problem is.

I agree though, when the linker fails, swearing usually ensues. Especially when there is a problem with a templated class *shudder*.

Reply

fgnord January 28 2008, 04:20:39 UTC
Finally figured it out! It helps when I actually read instructions on how to use the compiler instead of skimming them. It helps when you actually use the -l and -L commands properly ;-).

Reply

fallen42 January 28 2008, 19:54:05 UTC
Yeah, that helps :).

Reply


Leave a comment

Up