Author Topic: About wxWidgets helloworld error  (Read 5100 times)

Offline creator.sg

  • Single posting newcomer
  • *
  • Posts: 4
About wxWidgets helloworld error
« on: November 02, 2009, 09:34:40 am »
I follow this link step by step:[http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world#Let.27s_add_some_fireworks ] and create a helloworld project.
Project setting : Build options-> Linker settings  Link libraries: C:\Dev\wxWidgets2.8\lib\gcc_dll\libwxjpeg.a ... so many *.a files I added. I think its enough.  Search directories: Linker : C:\Dev\wxWidgets2.8\lib\gcc_dll ;C:\Dev\wxWidgets2.8\lib\gcc_lib;C:\Dev\CodeBlocks\share\CodeBlocks\plugins .(these directories I added.)

But my project can buil , but link error show:
bin\TestwxMain.o||In function `ZNK12wxWindowBase10GetMinSizeEv'Neutral
)]+0x47)||undefined reference to `_imp___Z10wxOnAssertPKwiPKcS0_S0_'|
bin\TestwxApp.o||In function `ZN12wxAppConsole16OnFatalExceptionEv'Neutral
C:\Dev\wxWidgets2.8\include\wx\app.h:(.rdata$_ZTV9TestwxApp[vtable for TestwxApp]+0x90)||undefined reference to `wxAppConsole::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'|
C:\Dev\wxWidgets2.8\include\wx\app.h:(.rdata$_ZTV9TestwxApp[vtable for TestwxApp]+0x94)||undefined reference to `wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)'|
||=== Build finished: 3 errors, 0 warnings ===

I think there is lib can not load, would you help me ? And told me how to setting its parameters.
Thanks,best regards.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: About wxWidgets helloworld error
« Reply #1 on: November 02, 2009, 10:05:30 am »
Do not post the same question in two (or more) different subforums.

Topic locked !