Undefined References to My Own Functions?

Hi there,

Code that compiled and linked just fine yesterday is no longer linking. I have been making some changes to the general structure of my source, but I'm so new to all this that I don't know exactly what I messed up. I can't even get it back the way it was yesterday, ack!

The structure I'm shooting for is:

1) classes.h - just class definitions
2) reference.h - has all the includes like <cstlib> and <stdio.h> globals, typedefs, and non-member function declarations
3) main.cpp - program entry point, includes classes.h and reference.h
4) memberFuncs.cpp - definitions for member functions, includes classes.h and reference.h

But now I'm getting a million linker errors with undefined references to everything in memberFuncs.cpp!

What gives?

I've been using Code::Blocks, but this problem has inspired me to figure out building with the command line ... still pretty new so talk to me like a 2-year-old please.

Thanks in advance!
Be sure that the prototypes in the headers match with the definitions in the source files
Ah, I think I got it.

One of the changes I made was inlining a lot of member functions. I didn't know the rules for that were different when it comes to member functions.

I think for now I'll worry less about tiny performance boosts and more about getting it all to work.

Thanks.
Topic archived. No new replies allowed.