Code:Blocks Errors When Compiling

I compiled the VS2008 library and tried to run a hello world project I made, but I get all of these errors:

Code: Select all

Z]+0x2f)||undefined reference to `__security_cookie'|
Z]+0x135)||undefined reference to `_RTC_CheckEsp'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2DistanceJoint.obj):(.text$x+0x18)||undefined reference to `@__security_check_cookie@4'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2DistanceJoint.obj):(.text$x+0x22)||undefined reference to `__CxxFrameHandler3'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
Z]+0x38)||undefined reference to `??3@YAXPAX@Z'|
Z]+0x4e)||undefined reference to `_RTC_CheckEsp'|
XZ]+0x37)||undefined reference to `_RTC_CheckEsp'|
Z]+0x665)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x677)||undefined reference to `_RTC_CheckEsp'|
Z]+0x276)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x288)||undefined reference to `_RTC_CheckEsp'|
Z]+0x32a)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x33c)||undefined reference to `_RTC_CheckEsp'|
XZ]+0x48)||undefined reference to `_RTC_CheckEsp'|
XZ]+0x48)||undefined reference to `_RTC_CheckEsp'|
Z]+0x6b)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x7d)||undefined reference to `_RTC_CheckEsp'|
UAEXXZ]+0x134)||undefined reference to `_RTC_CheckEsp'|
Z]+0x2f)||undefined reference to `__security_cookie'|
Z]+0xde)||undefined reference to `_imp___wassert'|
Z]+0xe8)||undefined reference to `_RTC_CheckEsp'|
Z]+0x12f)||undefined reference to `_imp___wassert'|
Z]+0x139)||undefined reference to `_RTC_CheckEsp'|
Z]+0x180)||undefined reference to `_imp___wassert'|
Z]+0x18a)||undefined reference to `_RTC_CheckEsp'|
Z]+0x1d1)||undefined reference to `_imp___wassert'|
Z]+0x1db)||undefined reference to `_RTC_CheckEsp'|
Z]+0x281)||undefined reference to `_RTC_CheckEsp'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2MouseJoint.obj):(.text$x+0x18)||undefined reference to `@__security_check_cookie@4'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2MouseJoint.obj):(.text$x+0x22)||undefined reference to `__CxxFrameHandler3'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2MouseJoint.obj):(.rtc$TMZ+0x0)||undefined reference to `_RTC_Shutdown'|
extLib\Box2D.lib(obj\x32\Debug\Box2D\b2MouseJoint.obj):(.rtc$IMZ+0x0)||undefined reference to `_RTC_InitBase'|
8]+0x0)||undefined reference to `??_7type_info@@6B@'|
QBE_NXZ]+0x7c)||undefined reference to `_RTC_CheckEsp'|
UAEXXZ]+0x3c)||undefined reference to `_RTC_CheckEsp'|
Z]+0x38)||undefined reference to `??3@YAXPAX@Z'|
Z]+0x4e)||undefined reference to `_RTC_CheckEsp'|
XZ]+0x37)||undefined reference to `_RTC_CheckEsp'|
Z]+0x5f)||undefined reference to `_RTC_CheckEsp'|
Z]+0x160)||undefined reference to `_imp___wassert'|
Z]+0x16a)||undefined reference to `_RTC_CheckEsp'|
Z]+0x3da)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x3ec)||undefined reference to `_RTC_CheckEsp'|
Z]+0x212)||undefined reference to `@_RTC_CheckStackVars@8'|
Z]+0x224)||undefined reference to `_RTC_CheckEsp'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 14 warnings ===|


I set all my project's build options right, at least I think I did. I set the directories for lib and src and have the sdl and opengl libraries in the linker options, plus the lib file for box2d manually linked.

Sorry that my first post is a question, but I really don't understand what I'm doing wrong.

Original thread: https://box2d.org/forum/viewtopic.php?t=9015