Author Topic: Problems Compiling WxWidgets Template Project  (Read 5107 times)

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Problems Compiling WxWidgets Template Project
« on: June 08, 2005, 07:52:39 pm »
I have wxWidgets 2.6.1 unzipped and compiled.  In the C:\wxWidgets-2.6.1\lib\gcc_dll directory I have wxmsw26_gcc_cb.dll, wxmsw26_stc_gcc_cb.dll, libwxmsw26.a, and libwxmsw26_stc.a (along with some other lib files).  I got all this setup by following the instructions here (which should be ammended to include the GNU make 3.80 requirment).  I also followed the instructions for setting up the first project.

This is what I get:
mingw32-g++.exe   -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fno-exceptions -D_X86_ -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS__    -I..\..\wxWidgets-2.6.1\include -I..\..\wxWidgets-2.6.1\contrib\include  -IC:\CodeBlocks\include -c main.cpp -o .objs\main.o
mingw32-g++.exe   -L..\..\wxWidgets-2.6.1\lib\gcc_dll  -LC:\CodeBlocks\lib -o C:\Ogre3D\SIM_GUI\wxTest.exe .objs\main.o        -lwxmsw -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid  -mwindows

Info: resolving wxAppConsole::ms_appInstance        by linking to __imp___ZN12wxAppConsole14ms_appInstanceE (auto-import)
Info: resolving wxStringBase::npos       by linking to __imp___ZN12wxStringBase4nposE (auto-import)
Info: resolving wxFrame::sm_eventTable       by linking to __imp___ZN7wxFrame13sm_eventTableE (auto-import)
Info: resolving _wxFrameNameStr by linking to __imp__wxFrameNameStr (auto-import)
Info: resolving _wxDefaultSize by linking to __imp__wxDefaultSize (auto-import)
Info: resolving _wxDefaultPosition by linking to __imp__wxDefaultPosition (auto-import)
Info: resolving vtable for wxMenuby linking to __imp___ZTV6wxMenu (auto-import)
Info: resolving vtable for wxMenuBaseby linking to __imp___ZTV10wxMenuBase (auto-import)
Info: resolving vtable for wxListBaseby linking to __imp___ZTV10wxListBase (auto-import)
Info: resolving vtable for wxObjectby linking to __imp___ZTV8wxObject (auto-import)
Info: resolving _wxEmptyString by linking to __imp__wxEmptyString (auto-import)
Info: resolving vtable for wxFrameby linking to __imp___ZTV7wxFrame (auto-import)
Info: resolving _wxEVT_COMMAND_MENU_SELECTED by linking to __imp__wxEVT_COMMAND_MENU_SELECTED (auto-import)
Info: resolving _wxEVT_NULL by linking to __imp__wxEVT_NULL (auto-import)
Info: resolving wxAppConsole::ms_appInitFn        by linking to __imp___ZN12wxAppConsole12ms_appInitFnE (auto-import)
Info: resolving vtable for wxwxMenuItemListNodeby linking to __imp___ZTV20wxwxMenuItemListNode (auto-import)
Info: resolving _wxTopLevelWindows by linking to __imp__wxTopLevelWindows (auto-import)

.objs\main.o(.text$_ZN6wxMenuC1ERK8wxStringl[wxMenu::wxMenu(wxString const&, long)]+0x24):main.cpp: variable 'vtable for wxMenu' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\main.o(.text$_ZN10wxMenuBaseC2ERK8wxStringl[wxMenuBase::wxMenuBase(wxString const&, long)]+0x16):main.cpp: variable 'vtable for wxMenuBase' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\main.o(.text$_ZN10wxListBaseC2E9wxKeyType[wxListBase::wxListBase(wxKeyType)]+0x16):main.cpp: variable 'vtable for wxListBase' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\main.o(.text$_ZN8wxObjectC2Ev[wxObject::wxObject()]+0x8):main.cpp: variable 'vtable for wxObject' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\main.o(.text$_ZN7wxFrameC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_[wxFrame::wxFrame(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)]+0x16):main.cpp: variable 'vtable for wxFrame' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
.objs\main.o(.text$_ZN20wxwxMenuItemListNodeC1EP10wxListBasePS_S2_P10wxMenuItemRK9wxListKey[wxwxMenuItemListNode::wxwxMenuItemListNode(wxListBase*, wxwxMenuItemListNode*, wxwxMenuItemListNode*, wxMenuItem*, wxListKey const&)]+0x39):main.cpp: variable 'vtable for wxwxMenuItemListNode' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)


When i add the -enable-auto-import flag to the linker it gets rid of all "Info:Resolving..." stuff, but not the other warnings.  I know this kind of stuff has been fixed before but I couldn't resolve my issue from reading those previous posts.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Problems Compiling WxWidgets Template Project
« Reply #1 on: June 08, 2005, 08:15:21 pm »
Just add WXUSINGDLL in "Project->Build options->Compiler definitions" and rebuild your project.

Yiannis.
Be patient!
This bug will be fixed soon...

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Problems Compiling WxWidgets Template Project
« Reply #2 on: June 08, 2005, 08:23:37 pm »
Thank you mandrav.

Is there any book you would recommend that could help people who aren't completely fimilar with compiling, linking, libraries files and dlls (like me)?  I believe the subject is called compilier theory.  I have a decent grasp on how it works, I would just like to know more.

Thanks for making this awsome IDE mandrav.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Problems Compiling WxWidgets Template Project
« Reply #3 on: June 08, 2005, 08:25:49 pm »
Quote from: Game_Ender
Is there any book you would recommend that could help people who aren't completely fimilar with compiling, linking, libraries files and dlls (like me)?  I believe the subject is called compilier theory.  I have a decent grasp on how it works, I would just like to know more.

Not particularly. Any introductory book should get you in the right track. After a while, experience kicks in ;)

Yiannis.
Be patient!
This bug will be fixed soon...

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Problems Compiling WxWidgets Template Project
« Reply #4 on: June 08, 2005, 09:05:28 pm »
I'm pretty sure compiler theory isn't what it's called, unless you plan on actually writing your own compiler ;)