Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Linker crap

Name: Anonymous 2011-02-16 0:29

I'm working on my homework for a C++ class this week, which is mostly prepping a bunch of functions for a lame "game" we're building. Now I made all my functions but when I try to compile everything i'm getting linker errors. No one's ever really explained to me how headers and multiple source files are supposed to work, so could someone please crash me through this quickly?
Basically I have a main.cpp that calls out functions (right now just for testing), a function filled mess called game.cpp, and then a header for it (game.h). When I try to compile main I get a buncha "[Linker error] undefined reference to 'someFunction()" even though game.h is included. What else do I need?

Name: anon dad !!AD5BPIyLBCWtNqc 2011-02-16 0:43

What environment (MS Visual Studio, unix command line, etc)?

Name: Anonymous 2011-02-16 0:45

>>1

fuck you faggot

Name: Anonymous 2011-02-16 0:47

Linker and headers are totally unrelated. Don't feel like typing out an explanation, but hopefully that helps.

Name: Anonymous 2011-02-16 1:00

I'm running DevC++ at home.
Xcode at school, but I won't get to a lab before it's due.

Name: Anonymous 2011-02-16 1:01

>>1
Well, if this isn't our good friend from >>/1297815682/1.

Stick with VisualBASIC. You will fail this class anyway.

Name: Anonymous 2011-02-16 1:05

>>6
That wasn't me, but thanks anyways.

Name: Anonymous 2011-02-16 1:11

n/m, I figured it out.

Name: Anonymous 2011-02-16 1:36

>>1,3
mailto:noko
( ≖‿≖)

Name: VIPPER 2011-02-16 3:31

>>9
Dear god, i almost responded to the troll.

Name: Anonymous 2011-02-16 4:07

check'em, linked dubs

Don't change these.
Name: Email:
Entire Thread Thread List