[wxWidgets 2.8.0 Visual Studio 2005 C++ Win XP SP2] Unresolved Symbol Errors

juancasero at bellsouth.net juancasero at bellsouth.net
Tue Jan 30 18:07:43 PST 2007


Greetings -

I am working through some examples of the code in the book "Cross Platform GUI Programming with wxWidgets" and I am getting a number of unresolved symbol errors when I try to link the first simple program called minimal.cpp.   I have specified all the library paths to the compiler and told it to search all the static libs I built using Visual Studio 2005 C++ solution of release 2.8.0 of wxWidgets.  Near as I can tell the command line paramters to the compiler look ok.   I can compile the code no problem.  It is only when I try build a binary by linking everything together that it all falls apart.  Below is the output of the Visual Studio IDE.   I hope someone can help me.   Maybe give me some hints or insight into why the compiler fails to identify the required modules in the static libs.  I forgot to mention that I told the compiler to link *all* the static libs in the vc_lib directory.   Also I was curious as to why building the release DLL version of wxWidgets 2.8.0 fails in the IDE.  

Thanks,
Juan


Error	1	error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize at wxApp@@UAE_NAAHPAPA_W at Z)	minimal.obj	
Error	2	error LNK2001: unresolved external symbol "protected: void __thiscall wxStringBase::InitWith(wchar_t const *,unsigned int,unsigned int)" (?InitWith at wxStringBase@@IAEXPB_WII at Z)	minimal.obj	
Error	3	error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)	minimal.obj	
Error	4	error LNK2001: unresolved external symbol "wchar_t const * const wxStatusLineNameStr" (?wxStatusLineNameStr@@3QB_WB)	minimal.obj	
Error	5	error LNK2001: unresolved external symbol "public: int __cdecl wxString::Printf(wchar_t const *,...)" (?Printf at wxString@@QAAHPB_WZZ)	minimal.obj	
Error	6	error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3QB_WB)	minimal.obj	
Error	7	error LNK2001: unresolved external symbol __imp__InitCommonControls at 0	wxmsw28_core.lib	
Error	8	error LNK2001: unresolved external symbol __imp__CreateStatusWindowA at 16	wxmsw28_core.lib	
Error	9	error LNK2001: unresolved external symbol __imp__CreateUpDownControl at 48	wxmsw28_core.lib	
Error	10	error LNK2001: unresolved external symbol __imp__ImageList_GetImageCount at 4	wxmsw28_core.lib	
Error	11	error LNK2001: unresolved external symbol __imp__ImageList_GetImageCount at 4	wxmsw28_core.lib	
Error	12	error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize at 12	wxmsw28_core.lib	
Error	13	error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize at 12	wxmsw28_core.lib	
Error	14	error LNK2001: unresolved external symbol __imp__ImageList_Create at 20	wxmsw28_core.lib	
Error	15	error LNK2001: unresolved external symbol __imp__ImageList_Create at 20	wxmsw28_core.lib	
Error	16	error LNK2001: unresolved external symbol __imp__ImageList_Destroy at 4	wxmsw28_core.lib	
Error	17	error LNK2001: unresolved external symbol __imp__ImageList_Destroy at 4	wxmsw28_core.lib	
Error	18	error LNK2001: unresolved external symbol __imp__ImageList_AddMasked at 12	wxmsw28_core.lib	
Error	19	error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon at 12	wxmsw28_core.lib	
Error	20	error LNK2001: unresolved external symbol __imp__ImageList_ReplaceIcon at 12	wxmsw28_core.lib	
Error	21	error LNK2001: unresolved external symbol __imp__ImageList_Remove at 8	wxmsw28_core.lib	
Error	22	error LNK2001: unresolved external symbol __imp__ImageList_Draw at 24	wxmsw28_core.lib	
Error	23	error LNK2001: unresolved external symbol __imp__ImageList_Draw at 24	wxmsw28_core.lib	
Error	24	error LNK2001: unresolved external symbol __imp__ImageList_SetBkColor at 8	wxmsw28_core.lib	
Error	25	error LNK2001: unresolved external symbol __imp__ImageList_Add at 12	wxmsw28_core.lib	
Error	26	error LNK2001: unresolved external symbol __imp__ImageList_Add at 12	wxmsw28_core.lib	
Error	27	error LNK2001: unresolved external symbol __imp__ImageList_Replace at 16	wxmsw28_core.lib	
Error	28	error LNK2001: unresolved external symbol __imp__ImageList_GetIcon at 12	wxmsw28_core.lib	
Error	29	error LNK2001: unresolved external symbol __imp__ImageList_EndDrag at 0	wxmsw28_core.lib	
Error	30	error LNK2001: unresolved external symbol __imp__ImageList_DragMove at 8	wxmsw28_core.lib	
Error	31	error LNK2001: unresolved external symbol __imp__ImageList_DragEnter at 12	wxmsw28_core.lib	
Error	32	error LNK2001: unresolved external symbol __imp__ImageList_DragLeave at 4	wxmsw28_core.lib	
Error	33	error LNK2001: unresolved external symbol __imp__ImageList_SetDragCursorImage at 16	wxmsw28_core.lib	
Error	34	error LNK2001: unresolved external symbol __imp__ImageList_BeginDrag at 16	wxmsw28_core.lib	
Error	35	fatal error LNK1120: 27 unresolved externals	C:\Documents and Settings\Juan Casero\My Documents\Visual Studio 2005\Projects\MyFrame\Release\MyFrame.exe	
 





More information about the wx-users mailing list