Weird Build


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by John Guanzon on August 03, 2000 at 04:00:52:

I am building using a win32 application(not console)
if I change something in my code and then build I get this:

Compiling...
project3.cpp
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Object::~Am_Object(void)" (??1Am_Object@@QAE@XZ)
project3.obj : error LNK2001: unresolved external symbol "void __cdecl Am_Cleanup(void)" (?Am_Cleanup@@YAXXZ)
project3.obj : error LNK2001: unresolved external symbol "void __cdecl Am_Main_Event_Loop(void)" (?Am_Main_Event_Loop@@YAXXZ)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Screen" (?Am_Screen@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Text" (?Am_Text@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Value_List::~Am_Value_List(void)" (??1Am_Value_List@@QAE@XZ)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::Add_Part(class Am_Object,bool)" (?Add_Part@Am_Object@@QAEAAV1@V1@_N@Z)
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Object::Am_Object(class Am_Object const &)" (??0Am_Object@@QAE@ABV0@@Z)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Menu_Bar" (?Am_Menu_Bar@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Value_List & __thiscall Am_Value_List::Add(char const *,enum Am_Add_Position,bool)" (?Add@Am_Value_List@@QAEAAV1@PBDW4Am_Add_Position@@_N@Z)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Menu_Line_Command" (?Am_Menu_Line_Command@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Quit_No_Ask_Command" (?Am_Quit_No_Ask_Command@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::Set(unsigned short,class Am_Wrapper *,unsigned long)" (?Set@Am_Object@@QAEAAV1@GPAVAm_Wrapper@@K@Z)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::Set(unsigned short,bool,unsigned long)" (?Set@Am_Object@@QAEAAV1@G_NK@Z)
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Value_List::operator class Am_Wrapper *(void)const " (??BAm_Value_List@@QBEPAVAm_Wrapper@@XZ)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Value_List & __thiscall Am_Value_List::Add(class Am_Wrapper *,enum Am_Add_Position,bool)" (?Add@Am_Value_List@@QAEAAV1@PAVAm_Wrapper@@W4Am_Add_Position@@_N@Z)
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Value_List::Am_Value_List(void)" (??0Am_Value_List@@QAE@XZ)
project3.obj : error LNK2001: unresolved external symbol "public: __thiscall Am_Object::operator class Am_Wrapper *(void)const " (??BAm_Object@@QBEPAVAm_Wrapper@@XZ)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Command" (?Am_Command@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::operator=(class Am_Object const &)" (??4Am_Object@@QAEAAV0@ABV0@@Z)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::Set(unsigned short,char const *,unsigned long)" (?Set@Am_Object@@QAEAAV1@GPBDK@Z)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object & __thiscall Am_Object::Set(unsigned short,int,unsigned long)" (?Set@Am_Object@@QAEAAV1@GHK@Z)
project3.obj : error LNK2001: unresolved external symbol "public: class Am_Object __thiscall Am_Object::Create(char const *)const " (?Create@Am_Object@@QBE?AV1@PBD@Z)
project3.obj : error LNK2001: unresolved external symbol "class Am_Object Am_Window" (?Am_Window@@3VAm_Object@@A)
project3.obj : error LNK2001: unresolved external symbol "void __cdecl Am_Initialize(void)" (?Am_Initialize@@YAXXZ)
project3.exe : fatal error LNK1120: 25 unresolved externals
Error executing cl.exe.

project3.exe - 26 error(s), 0 warning(s)


But then when I build again I get this:

Linking...

project3.exe - 0 error(s), 0 warning(s)

and then the code runs fine. However, is there anyway for me to change my code then build and not get 26 errors, am I missing something that causes the errors?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]