User forums > Using Code::Blocks
Migration Problems
Riddly:
I am used to programming in Xubuntu Linux with Anjuta... however, circumstances have forced me into Windows XP... as Anjuta isn't available for Windows, I decided to get Code Blocks; among other things maybe I'll take it back with me. Anyways, I'm trying to build my project which has dependencies on SDL, SDL_Image, SDL_Gfx, and Box2d. Now I've tried take care of this myself, but despite my efforts I have ended up with the following error message:
--- Quote ---undefined reference to 'SDL_strlcpy'
undefined reference to 'SDL_GetError'
undefined reference to 'SDL_SetModuleHandle'
undefined reference to 'SDL_strlcpy'
undefined reference to 'SDL_strlcat'
undefined reference to 'SDL_strlcpy'
undefined reference to 'SDL_strlcat'
undefined reference to 'SDL_strlcpy'
--- End quote ---
I know that there are no problems with Box2d... I am very sure of that. So if anyone could point me to a guide or tell me what I did wrong or something?
mandrav:
Assuming that you have setup the link libraries correctly, keep in mind that libraries link order matters.
Riddly:
I have setup the link libraries correctly as far as I can tell, and appon reading your message corrected the order, as far as I can tell, but I still cant get it to work, getting the new message...
--- Quote ---Project : SDL Application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Owner\Desktop\src\
--------------------------------------------------------------------------------
Switching to target: default
Linking console executable: SDLapp.exe
.objs\main.o:main.cc:(.text+0x261): undefined reference to `_imp__rotozoomSurface'
.objs\main.o:main.cc:(.text+0x28f): undefined reference to `_imp__rotozoomSurfaceXY'
.objs\main.o:main.cc:(.text+0x2e2): undefined reference to `_imp__zoomSurface'
.objs\main.o:main.cc:(.text+0x52f): undefined reference to `_imp__SDL_initFramerate'
.objs\main.o:main.cc:(.text+0x5ba): undefined reference to `b2World::b2World(b2AABB const&, b2Vec2 const&, bool)'
.objs\main.o:main.cc:(.text+0x6b2): undefined reference to `b2World::CreateBody(b2BodyDef const*)'
.objs\main.o:main.cc:(.text+0x7ef): undefined reference to `b2World::CreateBody(b2BodyDef const*)'
.objs\main.o:main.cc:(.text+0x8be): undefined reference to `b2World::CreateBody(b2BodyDef const*)'
.objs\main.o:main.cc:(.text+0x98d): undefined reference to `b2World::CreateBody(b2BodyDef const*)'
.objs\main.o:main.cc:(.text+0x9bc): undefined reference to `IMG_Load'
.objs\main.o:main.cc:(.text+0x9ea): undefined reference to `IMG_Load'
.objs\main.o:main.cc:(.text+0xa18): undefined reference to `IMG_Load'
.objs\main.o:main.cc:(.text+0xa46): undefined reference to `IMG_Load'
.objs\main.o:main.cc:(.text+0xb1c): undefined reference to `_imp__boxRGBA'
.objs\main.o:main.cc:(.text+0xb47): undefined reference to `b2World::Step(float, int)'
.objs\main.o:main.cc:(.text+0xcee): undefined reference to `_imp__SDL_framerateDelay'
.objs\main.o:main.cc:(.text+0xd1c): undefined reference to `b2World::~b2World()'
.objs\main.o:main.cc:(.text+0xd5b): undefined reference to `b2World::~b2World()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End quote ---
Belgabor:
Is SDL compiled as a static or as a dynamic lib?
Riddly:
I dunno... whatever the SDL site supplies it as... probably dynamic...
Navigation
[0] Message Index
[#] Next page
Go to full version