|
dev.gamez.lv Latvian Game Developers Community
|
View previous topic :: View next topic |
Author |
Message |
wechuks
Joined: 16 Dec 2007 Posts: 4
|
Posted: Sat Jan 05, 2008 12:09 pm Post subject: SDL "gluks" ar kompilaciju |
|
karo4 , saku nemties ar SDL uzraxtiju sitadu kodu pats
Code: |
#include <SDL.h>
#include <string>
SDL_Surface *screen=NULL;
SDL_Surface *background=NULL;
int main(){
if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) == -1){
printf("kkas nesanaaca:", SDL_GetError());
exit(1);
}
screen=SDL_SetVideoMode(450, 500, 24 , SDL_SWSURFACE);
SDL_WM_SetCaption( "aaa", NULL );
background = SDL_LoadBMP("bgr.bmp");
}
|
tikai kad meginu kompilet ar Code:Blocks izmet sitadu error
Linking executable: kkkas.exe
C:\Documents and Settings\martins\Desktop\SDL\lib/libSDLmain.a(SDL_win32_main.o): In function `console_main':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:246: undefined reference to `SDL_main'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings
PS: no kurienes tur herkules nezinu |
|
Back to top |
|
|
bubu Indago Uzvarētājs
Joined: 23 Mar 2004 Posts: 3223 Location: Riga
|
|
Back to top |
|
|
wechuks
Joined: 16 Dec 2007 Posts: 4
|
Posted: Sat Jan 05, 2008 12:38 pm Post subject: |
|
pat neiedomajos tur meklet
paldies
sa vai taa, kkas tur nav , jo bgr.bmp itka ieladejas , bet tas logs izlec melns |
|
Back to top |
|
|
coderpp
Joined: 20 Aug 2005 Posts: 167 Location: Rīga, Koknese, Gajiena
|
Posted: Sat Jan 05, 2008 1:32 pm Post subject: |
|
wechuks wrote: | pat neiedomajos tur meklet
sa vai taa, kkas tur nav , jo bgr.bmp itka ieladejas , bet tas logs izlec melns |
Viss tur kārtībā. Tu jau to bildi tikai ielādē, bet ar viņu neko nedari.
Paskaties šeit http://gpwiki.org/index.php/SDL:Tutorials:Displaying_a_Bitmap |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|