J
Jason Heyes
I wrote:
namespace { void f(); }
void f() { std::cout << "hello world" << std::endl; }
When I compile, I receive this error:
unresolved external symbol "bool __cdecl `anonymous namespace'::f(void)"
What have I done wrong? Thanks.
namespace { void f(); }
void f() { std::cout << "hello world" << std::endl; }
When I compile, I receive this error:
unresolved external symbol "bool __cdecl `anonymous namespace'::f(void)"
What have I done wrong? Thanks.