error LNK2019: unresolved exterior symbol "public: void __thiscall Agent::printSelf(void)" (?printSelf
QAEXXZ) referenced in duty "public: void __thiscall World::processMouse(int,int,int,int)" (?processMouse
Z) World.obj

Here is mine code

Agent.h:

class Agent{public: Agent();void printSelf();Agent.cpp:

void Agent::printSelf(){printf("Agent species=%i ", species);for (int i=0;iGLView.cpp:

void GLView::processMouse(int button, int state, int x, int y)if(world->isDebug()) printf("MOUSE EVENT: button=%i state=%i x=%i y=%i ", button, state, x, y);if(button==0) int wx= (int) ((x-conf::WWIDTH/2)/scalemult-xtranslate); int wy= (int) ((y-conf::WHEIGHT/2)/scalemult-ytranslate); world->processMouse(button, state, wx, wy);mousex=x; mousey=y;downb