stefan-tiger
02-06-2003, 07:33
hallo,
versuche mich grad an SDL:
http://kuschelecke.gruppenkuscheln.org/libsdl/docs/sdl-intro/sdl-intro.htm
und versuche ein prorgamm (sld2.c) zu kompilieren, das
#include <stdlib.h>
#include "/usr/include/SDL/SDL.h"
#include "/usr/include/SDL/SDL_image.h"
// Fuer einen 24-Bit-Modus unabhaengig von der Bytereihenfolge.
// Wird von also DrawPixel() benoetigt
#include "/usr/include/SDL/SDL_endian.h"
...
...
enthält.
kompilierbefehl:
gcc -I/usr/include/SDL `sdl-config --cflags` `sdl-config --libs` -lSDL_endian -o sdl2 sdl2.c && ./sdl2
fehlermeldung:
/usr//bin/ld: cannot find -lSDL_endian
collect2: ld retruned 1 exit status
jedoch bringt ein "ls /usr/include/SDL/":
begin_code.h
close_code.h
SDL_active.h
SDL_audio.h
SDL_byteorder.h
SDL_cdrom.h
SDL_copying.h
SDL_endian.h
SDL_error.h
SDL_events.h
SDL_getenv.h
SDL.h
SDL_image.h
SDL_joystick.h
SDL_keyboard.h
SDL_keysym.h
SDL_main.h
SDL_mixer.h
SDL_mouse.h
SDL_mutex.h
SDL_name.h
SDL_net.h
SDL_opengl.h
SDL_quit.h
SDL_rwops.h
SDL_syswm.h
SDL_thread.h
SDL_timer.h
SDL_ttf.h
SDL_types.h
SDL_version.h
SDL_video.h
warum findet er die datei SDL_endian nicht?
gruß
versuche mich grad an SDL:
http://kuschelecke.gruppenkuscheln.org/libsdl/docs/sdl-intro/sdl-intro.htm
und versuche ein prorgamm (sld2.c) zu kompilieren, das
#include <stdlib.h>
#include "/usr/include/SDL/SDL.h"
#include "/usr/include/SDL/SDL_image.h"
// Fuer einen 24-Bit-Modus unabhaengig von der Bytereihenfolge.
// Wird von also DrawPixel() benoetigt
#include "/usr/include/SDL/SDL_endian.h"
...
...
enthält.
kompilierbefehl:
gcc -I/usr/include/SDL `sdl-config --cflags` `sdl-config --libs` -lSDL_endian -o sdl2 sdl2.c && ./sdl2
fehlermeldung:
/usr//bin/ld: cannot find -lSDL_endian
collect2: ld retruned 1 exit status
jedoch bringt ein "ls /usr/include/SDL/":
begin_code.h
close_code.h
SDL_active.h
SDL_audio.h
SDL_byteorder.h
SDL_cdrom.h
SDL_copying.h
SDL_endian.h
SDL_error.h
SDL_events.h
SDL_getenv.h
SDL.h
SDL_image.h
SDL_joystick.h
SDL_keyboard.h
SDL_keysym.h
SDL_main.h
SDL_mixer.h
SDL_mouse.h
SDL_mutex.h
SDL_name.h
SDL_net.h
SDL_opengl.h
SDL_quit.h
SDL_rwops.h
SDL_syswm.h
SDL_thread.h
SDL_timer.h
SDL_ttf.h
SDL_types.h
SDL_version.h
SDL_video.h
warum findet er die datei SDL_endian nicht?
gruß