SDL in PellesC error ....

Started by L_O_J, December 02, 2004, 06:18:47 AM

Previous topic - Next topic

L_O_J

OK I have a question about SDL, as far as I know SDL is pure C right ?, so I try to use it with PellesC (I use the MSVC version 1.2.7), but when i compile the program, the compiler complaining about "_exit multiply defined"

here is the test prog :

#include <SDL\SDL.h>

int main (int argc, char*argv[])
{
return(0)
}


and I add SDLmain.lib and SDL.lib into the linker option. and turn on multithreading on compiler option.

could someone help me with SDL and PellesC ?

Timppa

Make SDLmain.lib yourself from SDL_win32_main.c with PellesC
It might help.

L_O_J

well thx for the advice but after looking and testing a few things last night I finaly figured out how to fix it. just include "msvcrt.lib" (in PellesC lib directory) into your linker.

guest

Just curious, since I've never used SDL before, but, does SDL have sound and joystick input?

Also....curious on how it renders. Could you post a screenshot or two once you get something compiled?

Thnx


ROM

L_O_J

I already able to compile pellesC with SDL (but havent make anything) I only test itu to change the screen color (SDL_FillRect(...)). and it works.

well SDL have that, for more info check www.libsdl.org, IMO SDL is somekind of wrapper for DirectX and OpenGL, so you dont have to hasle with the pain of setting it (DirectX and OpenGL) up :D

guest

Well, I have a slow PC and the GLUT examples I've tried don't execute well on it, "if at all".  SDL... I don't know how fast it would be on my PC.
I might try a Demo later, if I can find one. By the way, the link you gave me is dead.

GLFW is another interface to OpenGL. I've heard that it's a little faster than the other two. But, have'nt tried it either. But, I think it has joystick input and it's small....about 45kb. Also, I've heard that it's continually updated. Which is good.

Well, good luck with it anyways.


ROM

Diddl

Pelles C works fine with current SDL version 1.2.12 and with additional available libs like SDL-mixer. SDL is a nice environment for Game developer but also useful for all graphic and sound applications.