Hi there,
I have a simple problem.
I have a namespace with a couple of classes declared in a header file. The classes have functions but no body.
When I include the header file and try to call a function, i get the error unresolved external symbol referenced in function _main.
//headerfile
// forward declaration
namespace Test
{
class a;
class b;
}
namespace Test
{
class a
{
public:
void afunction ();
};
class b
{
public:
void bfunction ();
};
}
/// the main file
#include <iostream>
#include "headerfile.h"
using namespace std;
int main ()
{
Test::a* a = new Test::a();
a->afunction();
}