yLinuxzUEXJ ..
22:login:Penguin
04/12/12 22:21:55 pDIqgMYK
#include <SDL.h>
#include <stdio.h>
#if defined(QWS)
int SDL_main( int argc, char **argv )
#else
int main(int argc,char **argv)
#endif
{
/* ϊ» */
if(SDL_Init(SDL_INIT_VIDEO)<0) {
fprintf(stderr,"failed to initialize SDL.\n");
return -1;
}
/* IΉ */
SDL_Quit();
return 0;
}
Ζ’€\[Xπgcc -o test test.cpp `sdl-config --cflags --libs'Ζ΅ΔRpC·ιΖ
/mnt/card/libtest/libSDLmain.a(SDL_Qtopia_main.o): In function `main':/_temp/SDL-1.2.5/src/main/SDL_Qtopia_main.cc:27: undefined reference to `SDL_main'
/_temp/SDL-1.2.5/src/main/SDL_Qtopia_main.cc:27: relocation truncated
to fit: R_ARM_PC24 SDL_main
collect2: ld returned 1 exit status
ΖΘΑΔRpCΕ«άΉρBdev_imgΝURLΨέΈ(csx.jp)ΕSDLΝOX>>456ΜπgΑΔ’ά·B
y[WΕVX\¦XbhΜυήXκbθΜj
[X¨ά©ΉXg₯IvVπ\¦ΙΒΤ΅2ch
5368ϊOΙXV/129 KB
S:undef