BernieK
08-29-2005, 04:38 PM
hello!
i started the 3dBuzz GUI-Design VTM and i have some problems getting wxwidgets to run properly.
i use visual studio 2005 beta 2 with ms platform sdk (april 2005) and wxwidgets 2.5.3
when creating the libraries in wxwidgets i do get a lot of warnings (more than the guys in the VTM), but all 7 builds are successful.
when trying to compile my first project (of course the helloWorld :) ) i get some linking errors.
here is my code:
#include "wx/wx.h"
class HelloWorldApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(HelloWorldApp)
bool HelloWorldApp::OnInit()
{
wxFrame *frame = new wxFrame(NULL, -1, argv[0]);
frame->Show(TRUE);
SetTopWindow(frame);
return true;
}
and here are the errors i get:
------ Rebuild All started: Project: helloWorldAppFinal, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'helloWorldAppFinal', configuration 'Debug|Win32'
Compiling...
helloWorldApp.cpp
c:\program files\wxwidgets-2.5.3\include\wx\buffer.h(96) : warning C4996: 'strdup' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(170) : see declaration of 'strdup'
Compiling manifest to resources...
Linking...
helloWorldApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3PB_WB)
helloWorldApp.obj : error LNK2019: unresolved external symbol "protected: void __thiscall wxStringBase::InitWith(wchar_t const *,unsigned int,unsigned int)" (?InitWith@wxStringBase@@IAEXPB_WII@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(wchar_t const *)" (??0wxStringBase@@QAE@PB_W@Z)
helloWorldApp.obj : error LNK2019: unresolved external symbol "void __cdecl wxAssert(int,wchar_t const *,int,wchar_t const *,wchar_t const *)" (?wxAssert@@YAXHPB_WH00@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(class wxStringBase const &)" (??0wxStringBase@@QAE@ABV0@@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
Debug\helloWorldAppFinal.exe : fatal error LNK1120: 6 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Bernie\My Documents\Visual Studio 2005\Projects\helloWorldAppFinal\helloWorldAppFina l\Debug\BuildLog.htm"
helloWorldAppFinal - 7 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
i hope anyone can help me...
cheers!
i started the 3dBuzz GUI-Design VTM and i have some problems getting wxwidgets to run properly.
i use visual studio 2005 beta 2 with ms platform sdk (april 2005) and wxwidgets 2.5.3
when creating the libraries in wxwidgets i do get a lot of warnings (more than the guys in the VTM), but all 7 builds are successful.
when trying to compile my first project (of course the helloWorld :) ) i get some linking errors.
here is my code:
#include "wx/wx.h"
class HelloWorldApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(HelloWorldApp)
bool HelloWorldApp::OnInit()
{
wxFrame *frame = new wxFrame(NULL, -1, argv[0]);
frame->Show(TRUE);
SetTopWindow(frame);
return true;
}
and here are the errors i get:
------ Rebuild All started: Project: helloWorldAppFinal, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'helloWorldAppFinal', configuration 'Debug|Win32'
Compiling...
helloWorldApp.cpp
c:\program files\wxwidgets-2.5.3\include\wx\buffer.h(96) : warning C4996: 'strdup' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(170) : see declaration of 'strdup'
Compiling manifest to resources...
Linking...
helloWorldApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3PB_WB)
helloWorldApp.obj : error LNK2019: unresolved external symbol "protected: void __thiscall wxStringBase::InitWith(wchar_t const *,unsigned int,unsigned int)" (?InitWith@wxStringBase@@IAEXPB_WII@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(wchar_t const *)" (??0wxStringBase@@QAE@PB_W@Z)
helloWorldApp.obj : error LNK2019: unresolved external symbol "void __cdecl wxAssert(int,wchar_t const *,int,wchar_t const *,wchar_t const *)" (?wxAssert@@YAXHPB_WH00@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(class wxStringBase const &)" (??0wxStringBase@@QAE@ABV0@@Z)
helloWorldApp.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
Debug\helloWorldAppFinal.exe : fatal error LNK1120: 6 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Bernie\My Documents\Visual Studio 2005\Projects\helloWorldAppFinal\helloWorldAppFina l\Debug\BuildLog.htm"
helloWorldAppFinal - 7 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
i hope anyone can help me...
cheers!
