User forums > Using Code::Blocks

Cross Compiling with Mingw32...with errors

<< < (3/3)

ggpr:
YAY, one of my combinations of random thoughts got me somewhere...it now compiles... but 4 errors during linking(this is super progress)...any ideas, am I just missing a library or something simple (hopefully)?
reminder, this code (which is  a basic frame from wizard) still will compile with normal gnu compiler for linux.

ps, if anyone got wxwidgets to work with mingw32 as I am trying to do with ubuntu on a 32bit os and have successfully got it going...I would love to try another attempt...as I am sure there is a common foundation block that is messed up with what ever I am doing.  My head is starting to hurt.

-------------- Build: Win32 in test2 ---------------

i586-mingw32msvc-g++ -L/usr/i586-mingw32msvc/lib  -o test2 .objs/test2App.o .objs/test2Main.o   -L/usr/local/i586-mingw32/lib  -mthreads  -Wl,--subsystem,windows -mwindows -lwx_msw_richtext-2.8-i586-mingw32msvc -lwx_msw_aui-2.8-i586-mingw32msvc -lwx_msw_xrc-2.8-i586-mingw32msvc -lwx_msw_qa-2.8-i586-mingw32msvc -lwx_msw_html-2.8-i586-mingw32msvc -lwx_msw_adv-2.8-i586-mingw32msvc -lwx_msw_core-2.8-i586-mingw32msvc -lwx_base_xml-2.8-i586-mingw32msvc -lwx_base_net-2.8-i586-mingw32msvc -lwx_base-2.8-i586-mingw32msvc   
.objs/test2Main.o: In function `_ZN10test2FrameC2EP8wxWindowi':
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::UnregisterHotKey(int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::UnregisterHotKey(int)'
Info: resolving wxAppConsole::ms_appInstance        by linking to __imp___ZN12wxAppConsole14ms_appInstanceE (auto-import)
Info: resolving wxAppConsole::ms_appInitFn        by linking to __imp___ZN12wxAppConsole12ms_appInitFnE (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 _wxDefaultSize by linking to __imp__wxDefaultSize (auto-import)
Info: resolving _wxDefaultPosition by linking to __imp__wxDefaultPosition (auto-import)
Info: resolving _wxEmptyString by linking to __imp__wxEmptyString (auto-import)
Info: resolving _wxDefaultValidator by linking to __imp__wxDefaultValidator (auto-import)
Info: resolving _wxEVT_COMMAND_BUTTON_CLICKED by linking to __imp__wxEVT_COMMAND_BUTTON_CLICKED (auto-import)
Info: resolving _wxEVT_COMMAND_MENU_SELECTED by linking to __imp__wxEVT_COMMAND_MENU_SELECTED (auto-import)
Info: resolving vtable for wxStatusBarby linking to __imp___ZTV11wxStatusBar (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 vtable for wxHtmlWindowby linking to __imp___ZTV12wxHtmlWindow (auto-import)
Info: resolving vtable for wxHtmlWindowMouseHelperby linking to __imp___ZTV23wxHtmlWindowMouseHelper (auto-import)
Info: resolving vtable for wxBitmapby linking to __imp___ZTV8wxBitmap (auto-import)
Info: resolving vtable for wxGDIImageby linking to __imp___ZTV10wxGDIImage (auto-import)
Info: resolving vtable for wxGDIObjectby linking to __imp___ZTV11wxGDIObject (auto-import)
Info: resolving vtable for wxScrolledWindowby linking to __imp___ZTV16wxScrolledWindow (auto-import)
Info: resolving vtable for wxPanelby linking to __imp___ZTV7wxPanel (auto-import)
Info: resolving vtable for wxWindowby linking to __imp___ZTV8wxWindow (auto-import)
Info: resolving vtable for wxButtonby linking to __imp___ZTV8wxButton (auto-import)
Info: resolving vtable for wxControlby linking to __imp___ZTV9wxControl (auto-import)
Info: resolving vtable for wxControlBaseby linking to __imp___ZTV13wxControlBase (auto-import)
Info: resolving vtable for wxImageby linking to __imp___ZTV7wxImage (auto-import)
Info: resolving vtable for wxStaticBitmapby linking to __imp___ZTV14wxStaticBitmap (auto-import)
Info: resolving vtable for wxStaticBitmapBaseby linking to __imp___ZTV18wxStaticBitmapBase (auto-import)
Info: resolving vtable for wxFrameby linking to __imp___ZTV7wxFrame (auto-import)
Info: resolving _wxEVT_NULL by linking to __imp__wxEVT_NULL (auto-import)
Info: resolving vtable for wxwxMenuItemListNodeby linking to __imp___ZTV20wxwxMenuItemListNode (auto-import)
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
4 errors, 0 warnings
 

ggpr:
Just figured I would say that I solved this problem as the last encode was missing the `wx-config --cflags` for the compiler options
^for someone else with the same error

Navigation

[0] Message Index

[*] Previous page

Go to full version