Re: SDL2 Init Problem
- Posted by ghaberek (admin) Jun 27, 2013
- 3542 views
Lone_EverGreen_Ranger said...
public constant xSDL_Init = define_c_func(sdl,"SDL_Init",{C_UINT},C_INT) public function SDL_Init(atom flags) return c_func(xSDL_Init,{flags}) end function if xSDL_Init = -1 then puts(1,"Could not load SDL_Init") end if
Please have a look at my extended dynamic linking routines. I really think it will help your efforts here. Especially all those "if xFunction = -1" lines.
-Greg