View Full Version: Compiling the Source - A Guide for Windows Users

ivan >>Programming >>Compiling the Source - A Guide for Windows Users


Andy- 04-29-2006
Arg.
Still can't get this horrible booger to compile through code::blocks. When using the "custom makefile" option, it compiles just fine (no resource icon included), but when I attempt to do it through code::blocks it craps out. I am using the latest version of code::blocks and mingw32. I have attempted to duplicate the conditions in the makefile perfectly through code::blocks, yet I'm still getting some wierd liking errors (suprise). Below, I've pasted the compilation log generated by code::blocks. You can see from the syntax that it's calling mingw32-g++.exe pretty much the exact same way the makefile is, but there's obviously something wrong somewhere, and I cannot figure out what it is. mingw32-g++.exe -O3 -finline-functions -IInclude -IFeLib/Include -ffast-math -s -mwindows -DGCC -DUSE_SDL -DWIZARD -D_WIN32 -IMain\Include -IMain\Include -IFeLib\Include -IC:\MinGW\include -c .\Main\Source\wmapset.cpp -o Main\Release\Main\Source\wmapset.o mingw32-g++.exe -O3 -finline-functions -IInclude -IFeLib/Include -ffast-math -s -mwindows -DGCC -DUSE_SDL -DWIZARD -D_WIN32 -IMain\Include -IMain\Include -IFeLib\Include -IC:\MinGW\include -c .\Main\Source\wskill.cpp -o Main\Release\Main\Source\wskill.o mingw32-g++.exe -LFeLib\Release -LC:\MinGW\lib -o C:\Projects\ivan-0.50\Main\Release\Main.exe Main\Release\Main\Source\actset.o Main\Release\Main\Source\areaset.o Main\Release\Main\Source\charset.o Main\Release\Main\Source\charsset.o Main\Release\Main\Source\command.o Main\Release\Main\Source\coreset.o Main\Release\Main\Source\dataset.o Main\Release\Main\Source\dungeon.o Main\Release\Main\Source\game.o Main\Release\Main\Source\godset.o Main\Release\Main\Source\iconf.o Main\Release\Main\Source\id.o Main\Release\Main\Source\igraph.o Main\Release\Main\Source\itemset.o Main\Release\Main\Source\levelset.o Main\Release\Main\Source\main.o Main\Release\Main\Source\materset.o Main\Release\Main\Source\message.o Main\Release\Main\Source\object.o Main\Release\Main\Source\roomset.o Main\Release\Main\Source\script.o Main\Release\Main\Source\slotset.o Main\Release\Main\Source\trapset.o Main\Release\Main\Source\wmapset.o Main\Release\Main\Source\wskill.o Main\Release\Main\Resource\Ivan.res ..\..\MinGW\lib\libmingw32.a ..\..\MinGW\lib\libSDLmain.a ..\..\MinGW\lib\libSDL.a FeLib\Release\libFeLib.a ..\..\MinGW\lib\libwinmm.a -mwindows ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_Available': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:487: undefined reference to `IID_IDirectDrawSurface3' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_VideoInit': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:915: undefined reference to `IID_IDirectDraw2' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_AllocDDSurface': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:1672: undefined reference to `IID_IDirectDrawSurface3' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_SetVideoMode': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:1320: undefined reference to `IID_IDirectDrawSurface3' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_SetGammaRamp': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:2268: undefined reference to `IID_IDirectDrawGammaControl' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_GetGammaRamp': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:2314: undefined reference to `IID_IDirectDrawGammaControl' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_Available': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:460: undefined reference to `GUID_XAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:462: undefined reference to `GUID_YAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:465: undefined reference to `GUID_ZAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:466: undefined reference to `GUID_RxAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:471: undefined reference to `GUID_RyAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:472: undefined reference to `GUID_RzAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:472: undefined reference to `GUID_Slider' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:472: undefined reference to `GUID_Slider' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:474: undefined reference to `GUID_POV' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:474: undefined reference to `GUID_POV' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:481: undefined reference to `GUID_POV' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:481: undefined reference to `GUID_POV' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o): In function `DX5_CreateDevice': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:532: undefined reference to `GUID_XAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:533: undefined reference to `GUID_YAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:537: undefined reference to `GUID_ZAxis' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:577: undefined reference to `GUID_Key' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:579: undefined reference to `GUID_Key' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:582: undefined reference to `GUID_Key' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:582: undefined reference to `GUID_Key' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:588: undefined reference to `GUID_Key' ..\..\MinGW\lib\libSDL.a(SDL_dx5video.o):/home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5video.c:589: more undefined references to `GUID_Key' follow ..\..\MinGW\lib\libSDL.a(SDL_dx5events.o): In function `DX5_CreateWindow': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5events.c:177: undefined reference to `IID_IDirectInputDevice2A' ..\..\MinGW\lib\libSDL.a(SDL_dx5events.o): In function `GetTopLevelParent': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5events.c:72: undefined reference to `GUID_SysKeyboard' /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5events.c:76: undefined reference to `GUID_SysMouse' ..\..\MinGW\lib\libSDL.a(SDL_dx5yuv.o): In function `DX5_CreateYUVOverlay': /home/hercules/public_cvs/SDL12/src/video/windx5/SDL_dx5yuv.c:86: undefined reference to `IID_IDirectDrawSurface3' FeLib\Release\libFeLib.a(graphics.o):graphics.cpp:(.text+0xff): undefined reference to `SDL_RWFromFile' FeLib\Release\libFeLib.a(graphics.o):graphics.cpp:(.text+0x110): undefined reference to `SDL_LoadBMP_RW' collect2: ld returned 1 exit status Any ides?


Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.