I think it is to all calls of sdl functions. Here are all the errors I get at
building, thx in advance :
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:124: undefined
reference to SDL_LockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:135: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function fastPixelRGBA(SDL_Surface*, short, short, unsigned char, unsigned char, unsigned char, unsigned char)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:150: undefined reference to
SDL_MapRGBA’
src/core/SDL_gfxPrimitives.o: In function fastPixelRGBANolock(SDL_Surface*, short, short, unsigned char, unsigned char, unsigned char, unsigned char)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:168: undefined reference to
SDL_MapRGBA’
src/core/SDL_gfxPrimitives.o: In function _putPixelAlpha(SDL_Surface*, short, short, unsigned int, unsigned char)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:207: undefined reference to
SDL_MapRGB’
src/core/SDL_gfxPrimitives.o: In function pixelColor': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:353: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:364: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:375: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function pixelColorNolock(SDL_Surface*, short, short, unsigned int)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:393: undefined reference to
SDL_MapRGBA’
src/core/SDL_gfxPrimitives.o: In function _filledRectAlpha(SDL_Surface*, short, short, short, short, unsigned int, unsigned char)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:435: undefined reference to
SDL_MapRGB’
src/core/SDL_gfxPrimitives.o: In function filledRectAlpha(SDL_Surface*, short, short, short, short, unsigned int)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:586: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:597: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:608: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function pixelRGBA': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:682: undefined reference to
SDL_MapRGBA’
src/core/SDL_gfxPrimitives.o: In function hlineColorStore(SDL_Surface*, short, short, short, unsigned int)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:764: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:813: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
hlineColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:907: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:913: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:962: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
vlineColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1068: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1074: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1122: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
boxColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1443: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1449: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1511: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
lineColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1588: undefined
reference to SDL_LockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1609: undefined reference to
SDL_MapRGBA’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1728: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
aalineColorInt(SDL_Surface*, short,
short, short, short, unsigned int, int)’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1855: undefined
reference to SDL_LockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:1958: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function circleColor': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2050: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2071: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2123: undefined reference to
SDL_UnlockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2181: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
arcColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2278: undefined
reference to SDL_LockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2409: undefined reference to
SDL_MapRGBA’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2478: undefined
reference to SDL_UnlockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2552: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function ellipseColor': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2796: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:2817: undefined
reference to SDL_MapRGBA' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:3011: undefined reference to
SDL_UnlockSurface’
src/core/SDL_gfxPrimitives.o: In function aaellipseColor': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:3138: undefined reference to
SDL_LockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:3267: undefined
reference to SDL_UnlockSurface' src/core/SDL_gfxPrimitives.o: In function
texturedHLine(SDL_Surface*, short,
short, short, SDL_Surface*, int, int)’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4076: undefined
reference to SDL_UpperBlit' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4083: undefined reference to
SDL_UpperBlit’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4095: undefined
reference to SDL_UpperBlit' src/core/SDL_gfxPrimitives.o: In function
characterColor’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4400: undefined
reference to SDL_CreateRGBSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4422: undefined reference to
SDL_SetAlpha’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4426: undefined
reference to SDL_LockSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4459: undefined reference to
SDL_UnlockSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitives.c:4465: undefined
reference to SDL_UpperBlit' src/core/Agent.o: In function
Agent::show()’:
/users/tao/aze/phd/Curiosity_Local/src/core/Agent.cpp:78: undefined reference to
SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/Agent.cpp:82: undefined reference to
SDL_GetRGB’
src/core/Agent.o: In function Agent::move()': /users/tao/aze/phd/Curiosity_Local/src/core/Agent.cpp:183: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/Agent.cpp:186: undefined reference
to SDL_MapRGB' src/core/BalleAgent.o: In function
BalleAgent’:
/users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:33: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:47: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:52: undefined
reference to SDL_GetRGB' /users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:33: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:47: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:52: undefined reference to
SDL_GetRGB’
src/core/BalleAgent.o: In function BalleAgent::isCollision()': /users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:295: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:307: undefined
reference to SDL_MapRGB' src/core/BalleAgent.o: In function
BalleAgent::maj_vision()’:
/users/tao/aze/phd/Curiosity_Local/src/core/BalleAgent.cpp:416: undefined
reference to SDL_GetRGB' src/core/InspectorAgent.o: In function
InspectorAgent::show()’:
/users/tao/aze/phd/Curiosity_Local/src/core/InspectorAgent.cpp:134: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/InspectorAgent.cpp:136: undefined reference to
SDL_MapRGB’
src/core/roborobo.o: In function clean_up()': /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:254: undefined reference to
SDL_FreeSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:255: undefined
reference to SDL_FreeSurface' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:256: undefined reference to
SDL_FreeSurface’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:258: undefined
reference to SDL_FreeSurface' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:259: undefined reference to
SDL_FreeSurface’
src/core/roborobo.o:/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:262:
more undefined references to SDL_FreeSurface' follow src/core/roborobo.o: In function
checkQuitEvent()’:
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:331: undefined
reference to SDL_PollEvent' src/core/roborobo.o: In function
handleKeyEvent(unsigned char*)’:
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:351: undefined
reference to SDL_Delay' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:366: undefined reference to
SDL_Delay’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:374: undefined
reference to SDL_Delay' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:379: undefined reference to
SDL_Delay’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:393: undefined
reference to SDL_Delay' src/core/roborobo.o:/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:404: more undefined references to
SDL_Delay’ follow
src/core/roborobo.o: In function handleKeyEvent(unsigned char*)': /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:454: undefined reference to
SDL_GetRGB’
make[1]: quittant le r?pertoire ? /users/tao/aze/phd/Curiosity_Local ?
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:500: undefined
reference to SDL_GetRGB' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:506: undefined reference to
SDL_Delay’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:530: undefined
reference to SDL_Delay' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:547: undefined reference to
SDL_Delay’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:563: undefined
reference to SDL_Delay' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:577: undefined reference to
SDL_Delay’
src/core/roborobo.o:/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:585:
more undefined references to SDL_Delay' follow src/core/roborobo.o: In function
updateDisplay()’:
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:640: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:640: undefined reference to
SDL_FillRect’
/users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:677: undefined
reference to SDL_Flip' /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:685: undefined reference to
SDL_Delay’
src/core/roborobo.o: In function runRoborobo(int)': /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:1416: undefined reference to
SDL_GetKeyState’
src/core/roborobo.o: In function closeRoborobo()': /users/tao/aze/phd/Curiosity_Local/src/core/roborobo.cpp:1445: undefined reference to
SDL_Quit’
src/core/RobotAgent.o: In function RobotAgent': /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:36: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:49: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:54: undefined reference to
SDL_GetRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:36: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:49: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:54: undefined
reference to SDL_GetRGB' src/core/RobotAgent.o: In function
RobotAgent::move(int)’:
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:481: undefined
reference to SDL_GetRGB' /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:487: undefined reference to
SDL_GetRGB’
src/core/RobotAgent.o: In function RobotAgent::isCollision()': /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:510: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:522: undefined
reference to SDL_MapRGB' src/core/RobotAgent.o: In function
RobotAgent::show()’:
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:591: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:597: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:624: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/RobotAgent.cpp:628: undefined reference to
SDL_GetRGB’
src/core/SDL_gfxPrimitivesExtra.o: In function traceRayRGBA(SDL_Surface*, int, int, int, int, unsigned char, unsigned char, unsigned char, unsigned char)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitivesExtra.cpp:21: undefined reference to
SDL_MapRGB’
src/core/SDL_gfxPrimitivesExtra.o: In function castSensorRay(SDL_Surface*, double, double, double*, double*, int)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitivesExtra.cpp:105: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxPrimitivesExtra.cpp:135:
undefined reference to SDL_MapRGB' src/core/SDL_gfxRoborobo.o: In function
initSDL(unsigned int)’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:24: undefined
reference to SDL_Init' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:30: undefined reference to
SDL_SetVideoMode’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:39: undefined
reference to SDL_WM_SetCaption' src/core/SDL_gfxRoborobo.o: In function
putPixel32secure(SDL_Surface*, int,
int, unsigned int)’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:74: undefined
reference to SDL_CreateRGBSurface' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:78: undefined reference to
SDL_FreeSurface’
src/core/SDL_gfxRoborobo.o: In function apply_surface(int, int, SDL_Surface*, SDL_Surface*, SDL_Rect*)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:92: undefined reference to
SDL_UpperBlit’
src/core/SDL_gfxRoborobo.o: In function register_surface(int, int, SDL_Surface*, SDL_Surface*, int)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:101: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:103: undefined
reference to SDL_MapRGB' src/core/SDL_gfxRoborobo.o: In function
clean_surface(int, int, SDL_Surface*,
SDL_Surface*)’:
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:114: undefined
reference to SDL_MapRGB' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:115: undefined reference to
SDL_MapRGB’
src/core/SDL_gfxRoborobo.o: In function load_image(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:163: undefined reference to
IMG_Load’
/users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:169: undefined
reference to SDL_DisplayFormat' /users/tao/aze/phd/Curiosity_Local/src/core/SDL_gfxRoborobo.cpp:172: undefined reference to
SDL_FreeSurface’
src/core/Timer.o: In function Timer::start()': /users/tao/aze/phd/Curiosity_Local/src/core/Timer.cpp:29: undefined reference to
SDL_GetTicks’
src/core/Timer.o: In function Timer::pause()': /users/tao/aze/phd/Curiosity_Local/src/core/Timer.cpp:50: undefined reference to
SDL_GetTicks’
src/core/Timer.o: In function Timer::unpause()': /users/tao/aze/phd/Curiosity_Local/src/core/Timer.cpp:63: undefined reference to
SDL_GetTicks’
src/core/Timer.o: In function Timer::get_ticks()': /users/tao/aze/phd/Curiosity_Local/src/core/Timer.cpp:84: undefined reference to
SDL_GetTicks’
src/core/World.o: In function World::loadFiles()': /users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:404: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:404: undefined reference
to SDL_SetColorKey' /users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:406: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:406: undefined reference
to SDL_SetColorKey' /users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:407: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:407: undefined reference
to SDL_SetColorKey' /users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:414: undefined reference to
SDL_MapRGB’
/users/tao/aze/phd/Curiosity_Local/src/core/World.cpp:415: undefined reference
to `SDL_MapRGB’
collect2: ld returned 1 exit status
make[1]: [roborobo] Erreur 1 (ignor?e)_______________________________
De : Alberto Luaces
? : sdl at libsdl.org
Envoy? le : Mer 1 d?cembre 2010, 9h 49min 08s
Objet : Re: [SDL] statically linking
azer tyuiop writes:
But it do not want to compile anymore (unreferenced functions of SDL).
Post the undefined references, please.
–
Alberto
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org