i trying compile project in codeblocks (12.11) wxwidgets 64 bit (2.8.12) , getting errors:
undefined reference `__imp_z22wxinitallimagehandlersv'| undefined reference `__imp_zn12wxappconsole17checkbuildoptionsepkcs1_'| undefined reference `__imp_zn5wxappc2ev'| undefined reference `__imp_zn12wxappconsole14ms_appinstancee'| undefined reference `__imp_z7wxentryp11hinstance__50_pci'|
how can resolve troubles?
ps: wxwidgets library compiled correctly , codeblocks recognized it.
edit
-------------- build: release in amdwx (compiler: mingw64)--------------- g++.exe -lc:\wxwidgets-2.8.12\lib\gcc_dll -o bin\release\amdwx.exe obj\release\amdwxapp.o obj\release\amdwxmain.o obj\release\resource.res -s -mthreads c:\wxwidgets-2.8.12\lib\gcc_dll\libwxmsw28u.a -mwindows obj\release\amdwxapp.o:amdwxapp.cpp:(.text+0x5d): undefined reference `__imp__z22wxinitallimagehandlersv' obj\release\amdwxapp.o:amdwxapp.cpp:(.text+0x173): undefined reference `__imp__zn12wxappconsole17checkbuildoptionsepkcs1_' obj\release\amdwxapp.o:amdwxapp.cpp:(.text+0x193): undefined reference `__imp__zn5wxappc2ev' obj\release\amdwxapp.o:amdwxapp.cpp:(.text+0x1f3): undefined reference `__imp__zn12wxappconsole14ms_appinstancee' obj\release\amdwxapp.o:amdwxapp.cpp:(.text+0x203): undefined reference `__imp__z7wxentryp11hinstance__s0_pci' c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: obj\release\amdwxapp.o: bad reloc address 0x0 in section `.pdata$_zn12wxevthandler12tryvalidatorer7wxevent' collect2: ld returned 1 exit status process terminated status 1 (0 minutes, 7 seconds) 5 errors, 0 warnings (0 minutes, 7 seconds)
i have following files in project:
pastebin.com/iddbpuq5 -> amdwxmain.h
pastebin.com/jk47hhvy -> amdwxmain.cpp
pastebin.com/kp9e5azb -> amdwxapp.h
pastebin.com/x57pblhz -> amdwxapp.cpp
i posted in pastebin servers because many files.
Comments
Post a Comment