I am trying to compile a project in C++, VS 2012, and I am running into a LNK 2019 error. I have #ifndef macros on all my header files. I think it is getting confused about a file I included in a namespace that holds helper functions, as I am new to using namespaces and am possibly using them wrong. It looks like this:
Foo.h:
namespace fooSpace
{
foo();
}
I include this in Foo.cpp:
using fooSpace;
foo ()
{
// definition of foo
}
I also include Foo.h in my Main.cpp, where I try to use the function by saying:
using fooSpace;
// Other stuff
fooSpace::foo();
Is there anything strikingly obvious as to why I would get the linker error? Or is it nothing necessarily here, and it's probably something else I've done?
Thanks very much for any response!