i got a problem. I got 3 files, foo.h, foo.cpp and main.cpp.
foo.h looks like:
void goo();
foo.cpp
#include "foo.h"
void goo()
{
(something)
}
and main.cpp
#include "foo.h"
int main()
{
goo();
return 0;
}
This generates error 'goo' was not declared in this scope, but I can't find any clue why is this happening. Is this linker error?