For some reason when this code gets include i get weird linker error......
here's main function:..
Code:
#include <iostream.h>
#include "ItemManager.h"
int main()
{
ItemManager SomeItem;
SomeItem.ItemCreate();
return 0;
}
here's what the linker is flagging...
[Linker Error] Unresolved external 'ItemManager::ItemCreate()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\INVENTORY\MAIN2.O BJ
just for reference here's the code for ItemManager.h.....
Code:
//----------------------------------------------------------------------------
// Preprocessor directives...
#ifndef ITEMMANAGER_H
#define ITEMMANAGER_H
//-----------------------------------------------------------------------------
// class ItemManger
class ItemManager
{
public:
void ItemCreate();
};
//-----------------------------------------------------------------------------
#endif
i can't spot the problem....the code compiles fine... linker is the only objective part...
Thanx in adnvance....
matheo917