For some reason when this code gets include i get weird linker error......
here's main function:..
here's what the linker is flagging...Code:#include <iostream.h> #include "ItemManager.h" int main() { ItemManager SomeItem; SomeItem.ItemCreate(); return 0; }
[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.....
i can't spot the problem....the code compiles fine... linker is the only objective part...Code://---------------------------------------------------------------------------- // Preprocessor directives... #ifndef ITEMMANAGER_H #define ITEMMANAGER_H //----------------------------------------------------------------------------- // class ItemManger class ItemManager { public: void ItemCreate(); }; //----------------------------------------------------------------------------- #endif
Thanx in adnvance....
matheo917



LinkBack URL
About LinkBacks


