Compiler errors 编译简单项目时出错

Compiler errors 编译简单项目时出错,compiler-errors,wxwidgets,codeblocks,undefined-reference,mingw-w64,Compiler Errors,Wxwidgets,Codeblocks,Undefined Reference,Mingw W64,我试图用wxWidgets 64位(2.8.12)在代码块(12.11)中编译一个项目,我遇到以下错误: undefined reference to `__imp_z22wxInitAllImageHandlersv'| undefined reference to `__imp_ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'| undefined reference to `__imp_ZN5wxAppC2Ev'| undefined referenc

我试图用wxWidgets 64位(2.8.12)在代码块(12.11)中编译一个项目,我遇到以下错误:

undefined reference to `__imp_z22wxInitAllImageHandlersv'|
undefined reference to `__imp_ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'|
undefined reference to `__imp_ZN5wxAppC2Ev'|
undefined reference to `__imp_ZN12wxAppConsole14ms_appInstanceE'|
undefined reference to `__imp_Z7wxEntryP11HINSTANCE__50_Pci'|
我如何解决这些问题

PS:wxWidgets库编译正确,代码块可以识别它

编辑

-------------- 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 to `__imp__Z22wxInitAllImageHandlersv'
obj\Release\amdwxApp.o:amdwxApp.cpp:(.text+0x173): undefined reference to `__imp__ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'
obj\Release\amdwxApp.o:amdwxApp.cpp:(.text+0x193): undefined reference to `__imp__ZN5wxAppC2Ev'
obj\Release\amdwxApp.o:amdwxApp.cpp:(.text+0x1f3): undefined reference to `__imp__ZN12wxAppConsole14ms_appInstanceE'
obj\Release\amdwxApp.o:amdwxApp.cpp:(.text+0x203): undefined reference to `__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 with status 1 (0 minutes, 7 seconds)
5 errors, 0 warnings (0 minutes, 7 seconds)
我的项目中有以下文件:

pastebin.com/iDDbpUQ5->amdwxMain.h

pastebin.com/jk47hHVY->amdwxMain.cpp

pastebin.com/KP9e5AzB->amdwxApp.h

pastebin.com/x57pBLHZ->amdwxApp.cpp


因为文件太多,我在pastebin服务器上发布了帖子。

你能通过更新问题给出完整的构建日志(错误)吗?另外,请输入一些你实现的代码我刚刚更新了我的问题,谢谢