root@artemis SDL_image-1.2.3 # make /bin/sh ./libtool --mode=link gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o showimage showimage.o libSDL_image.la -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o .libs/showimage showimage.o .libs/libSDL_image.so -L/usr/lib -lSDL -lpthread -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -Wl,--rpath -Wl,/usr/local/lib //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SjLj_Unregister' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_GetIP' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_GetRegionStart' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `__umoddi3' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SjLj_Register' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `__udivdi3' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_DeleteException' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SjLj_RaiseException' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SjLj_Resume' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SjLj_Resume_or_Rethrow' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SetIP' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_GetTextRelBase' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_GetLanguageSpecificData' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_SetGR' //usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.5/libstdc++.so.5: undefined reference to `_Unwind_GetDataRelBase' collect2: ld returned 1 exit status make: *** [showimage] Error 1
Predpokladám, že ti vypisuje „Undefined reference to…“.
V tom prípade musíš:
1. Vytvoriť projekt v devcpp
2. v Menu Projekt->Nastavenie projektu záložka Parametre textové okno Linker napísať alebo skopírovať: -lmingw32
-lSDLmain
-lSDL
-mwindows
3. kliknúť: projekt->Pridať do projektu a vybrať daný súbor(s príponou .cpp)
dôvod, prečo to neurobil autor:
on to robil pod linuxom a tam sa toto robí pomocou Makefile