3dBuzz VTM: wxWidgets linking problem

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  08 August 2005
3dBuzz VTM: wxWidgets linking problem


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
	virtual bool OnInit();
bool HelloWorldApp::OnInit()
	wxFrame *frame = new wxFrame(NULL, -1, argv[0]);
	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'
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...
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...

  08 August 2005
just found something on the ms-sdk homepage:

Quote: If you are using Microsoft Visual C/C++®, run it at least once before installing the SDK. This will ensure that the environment variables are correctly configured

i did not run vc++ before installing the sdk. can this somehow cause these problems?
  08 August 2005
You forgot to link your code against the wx library. As such, all the WxWidgets symbols are failing. You need to specify either the library's .lib (if you want a static link) or .dll (a dynamic link) file for it. Usually, you will want a dynamic link.
You can add that in your project settings. If you are unsure, I'm pretty sure wxwidgets already comes with some vc projects, so check your settings against those.
Gonzalo Garramuño
  08 August 2005
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:45 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.