SDL_gfx.dll
-
guten Morgen,
ich mache leider recht wenig bis gar nichts mit C/C++, daher weiss ich leider auch nicht viel ueber die compiler spezifischen funktionen/optionen.
Ich habe DEVCPP/mingw fuer windows.ich nutze haeufiger die libs von SDL und habe auch die meisten DLL's sowie statischen .a files dazu...
nur die SDL_gfx.dll fehlten mir... durch googlen hab ich die seite gefunden wo ich mir die C sourcen dafuer downloaden kann, was ich auch gemacht habe.
jetzt habe ich leider das problem das ich die DLL nicht compilieren kann.
ich kann zwar eine static lib erzeugen, aber leider nicht die DLL.muss ich vielleicht noch etwas aendern, dem compiler besondere optionen mitgeben...
vielleicht koennte mir jemand helfen...hier noch die ausgabe von DEVCPP wenn ich die DLL compilieren will:
Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Führt make... aus make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe -c D:/SDL_gfx-2.0.13/dllmain.cpp -o D:/SDL_gfx-2.0.13/dllmain.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1 -lwx -lm -lwsock32 g++.exe: -lwx: linker input file unused because linking not done g++.exe: -lm: linker input file unused because linking not done g++.exe: -lwsock32: linker input file unused because linking not done dllwrap.exe --output-def libProjekt1.def --driver-name c++ --implib libProjekt1.a D:/SDL_gfx-2.0.13/dllmain.o D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o D:/SDL_gfx-2.0.13/SDL_framerate.o D:/SDL_gfx-2.0.13/SDL_imageFilter.o D:/SDL_gfx-2.0.13/SDL_rotozoom.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias -o Projekt1.dll D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1fc):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x252):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2be):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x34c):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x5e6):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGB' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0xb09):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0xb6b):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0xbbf):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0xc37):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0xe8a):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGB' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x13ce):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1430):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1494):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1650):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x17f9):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x192b):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1b4c):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1b5a):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1c8c):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1ee3):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1ef1):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x1ff3):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2a45):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2a53):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2c1b):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2f26):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x2f88):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x3302):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x3584):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x37d4):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x3ac1):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x3b23):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x3e4a):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x418c):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x49f2):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x4a66):SDL_gfxPrimitives.c: undefined reference to `SDL_MapRGBA' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x58dd):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x5c43):SDL_gfxPrimitives.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x637b):SDL_gfxPrimitives.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x7eab):SDL_gfxPrimitives.c: undefined reference to `SDL_FreeSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x8064):SDL_gfxPrimitives.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x80d3):SDL_gfxPrimitives.c: undefined reference to `SDL_SetAlpha' D:/SDL_gfx-2.0.13/SDL_gfxPrimitives.o(.text+0x81ad):SDL_gfxPrimitives.c: undefined reference to `SDL_UpperBlit' D:/SDL_gfx-2.0.13/SDL_framerate.o(.text+0x29):SDL_framerate.c: undefined reference to `SDL_GetTicks' D:/SDL_gfx-2.0.13/SDL_framerate.o(.text+0xb3):SDL_framerate.c: undefined reference to `SDL_GetTicks' D:/SDL_gfx-2.0.13/SDL_framerate.o(.text+0x114):SDL_framerate.c: undefined reference to `SDL_Delay' D:/SDL_gfx-2.0.13/SDL_framerate.o(.text+0x127):SDL_framerate.c: undefined reference to `SDL_GetTicks' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1b7e):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1ba3):SDL_rotozoom.c: undefined reference to `SDL_UpperBlit' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1d54):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1d9b):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1da9):SDL_rotozoom.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1e5f):SDL_rotozoom.c: undefined reference to `SDL_SetAlpha' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1f5b):SDL_rotozoom.c: undefined reference to `SDL_SetColorKey' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x1f66):SDL_rotozoom.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2002):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2049):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2057):SDL_rotozoom.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x20a5):SDL_rotozoom.c: undefined reference to `SDL_SetAlpha' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2151):SDL_rotozoom.c: undefined reference to `SDL_SetColorKey' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x215c):SDL_rotozoom.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2170):SDL_rotozoom.c: undefined reference to `SDL_FreeSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x22b2):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x22d7):SDL_rotozoom.c: undefined reference to `SDL_UpperBlit' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x23c0):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2407):SDL_rotozoom.c: undefined reference to `SDL_CreateRGBSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2415):SDL_rotozoom.c: undefined reference to `SDL_LockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x245d):SDL_rotozoom.c: undefined reference to `SDL_SetAlpha' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x2503):SDL_rotozoom.c: undefined reference to `SDL_SetColorKey' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x250e):SDL_rotozoom.c: undefined reference to `SDL_UnlockSurface' D:/SDL_gfx-2.0.13/SDL_rotozoom.o(.text+0x251f):SDL_rotozoom.c: undefined reference to `SDL_FreeSurface' collect2: ld returned 1 exit status dllwrap.exe: no export definition file provided. Creating one, but that may not be what you want dllwrap.exe: c++ exited with status 1 make.exe: *** [Projekt1.dll] Error 1 Ausführung beendet
-
du musst auch SDL mitlinken.
-
danke,
wie mache ich das ? ich habe nur die SDL.dll aber keine header oder c datei dafuer..
-
Hallo,
vielleicht koennte mir hier jemand bei dem Problem weiterhelfen und mir erklaeren, welche files ich alle ins projekt laden muss und wie ich am besten die DLL compilieren kann ?