All of my function calls in main of a certain class (say foo) are being marked by the linker as "undefined references". Here's my setup:
foo.h:
foo.cppCode:#ifdef ... namespace foobar { class foo{...}; namespace exception { class anexception{}; } } #endif
main.cppCode:#include "foo.h" using namespace foobar; foo::a_function()... . . .
Where is my format wrong? What aren't I including correctly, etc?Code:#include "foo.h" int main() { foo foo_instance; foo_instance.a_function(); return EXIT_SUCCESS; }