Hello,
I'm trying to use AG_InitVideoSDL(screen, 0) within a modified minimal.c.
It compiles successfull, but at start of minimal I see the following errmsg:
"minimal: symbol lookup error: minimal: undefined symbol: agDriverOps"
In the moment I'm not able to fix the problem ..
(System: Linux 10.3)
/* Public domain */
#include <agar/core.h>
#include <agar/gui.h>
#include <agar/gui/keyboard.h>
#include <SDL.h>
int
main(int argc, char *argv[])
{
AG_Window *win;
SDL_Surface *screen;
SDL_Init(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode(640,480, 32,
SDL_HWSURFACE|SDL_DOUBLEBUF);
AG_InitCore("myapp", 0);
AG_InitVideoSDL(screen, 0);
AG_TextMsg(AG_MSG_INFO, "Hello, SDL!");
AG_BindGlobalKey(AG_KEY_ESCAPE, AG_KEYMOD_ANY, AG_QuitGUI);
AG_EventLoop();
AG_Destroy();
return (0);
}
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html