Tam çýktýyý gönderir misiniz?
eclipse içerisinde mi derliyorsunuz? kendi make dosyanýzýmý yazdýnýz?
Kolay gelsin.
koray mehmet yazmýþ:
> merhabalar,
>
> bu ilk mesajým, belirtmek isterim.
>
> Normalde Windows kullanýcýsýydým. Linuxa geçmek için debeleniyorum.
> Biraz C++ bilgim var ve eclipse idesini kullanaraktan oyun yazmak
> istiyorum. sonrasýnda online oyunda düþünürüz.
> http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index
> sdl kütüphanesinin tutorialýný gördüm. sdl kütüphanesinin source
> dosyasnýný indirdim ve ./configure, make, make install dedim ve bir
> yerlere biþeyler attý.
>
> #include *<*stdio*.*h*>*
> #include *<*stdlib*.*
> h*>*
>
> #include *<*SDL/SDL*.*h*>*
>
>
> /// The functions are not shown to save space
> /*void* DrawPixel*(*SDL_Surface *screen*,*
> *int* x*,* *int* y*,*
> Uint8 R*,*
> Uint8 G*,* Uint8 B*)**;*
> *void* Slock*(*SDL_Surface
> *screen*)**;*
> *void* Sulock*(*SDL_Surface *screen
> *)**;*
>
>
> *int* *main**(**int* argc
> *,* *char* *argv*[**]**)*
> *{*
>
>
> *if* *(* SDL_Init*(*SDL_INIT_AUDIO|SDL_INIT_VIDEO*)*
> *<* 0 *)*
> *{*
> printf*(*"Unable to init SDL: %s\n"
> *,* SDL_GetError*(**)**)**;*
> exit
> *(*1*)**;*
> *}*
> atexit*(*SDL_Quit
> *)**;*
>
> SDL_Surface *screen*;*
> screen=SDL_SetVideoMode*(*
> 640*,*480*,*32*,*SDL_HWSURFACE|SDL_DOUBLEBUF
> *)**;*
> *if* *(* screen == NULL *)*
>
> *{*
> printf*(*"Unable to set 640x480 video: %s\n"*,* SDL_GetError
> *(**)**)**;*
> exit*(*1*)*
> *;*
> *}*
>
> /// DRAWING GOES HERE
> /
> *return* 0
> *;*
>
>
>
> kodu derlediðimde undefined referance hatasý veriyor. include ediyorum
> ama linkerda biþeyler yapmam lazýmmýþ yalnýz nasýl yapacaðýmý bulamadým.
>
> þimdiden teþekkür ederim
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
-- Aykut KOÇAK Elektronik Mühendisi E-Posta :aykutkocak_at_superonline.com Web : http://www.gprskamera.com http://www.abesis.net _______________________________________________ Linux-programlama mailing list Linux-programlama_at_liste.linux.org.tr http://liste.linux.org.tr/mailman/listinfo/linux-programlamaReceived on Tue 08 Jan 2008 - 11:52:01 EET