Error when compiling my code with SDL1.3

hi, i get this error when i compile a bit of my stuff against SDL1.3… any
pointers or help please :wink: i have no clue why this would happen here but not
in my other code

In file included from /usr/local/include/SDL/SDL.h:94,
from src/misc.h:1,
from src/sound.c:4:
/usr/local/include/SDL/SDL_compat.h:304: error: conflicting types for
?putenv?
/usr/include/stdlib.h:578: note: previous declaration of ?putenv? was here
make: *** [src/sound.o] Error 1

i dont get the error when i compile my testing / messing about stuff i am
playing with in SDL1.3

hi, i get this error when i compile a bit of my stuff against SDL1.3… any
pointers or help please :wink: i have no clue why this would happen here but not
in my other code

In file included from /usr/local/include/SDL/SDL.h:94,
from src/misc.h:1,
from src/sound.c:4:
/usr/local/include/SDL/SDL_compat.h:304: error: conflicting types for
?putenv?
/usr/include/stdlib.h:578: note: previous declaration of ?putenv? was here
make: *** [src/sound.o] Error 1

i dont get the error when i compile my testing / messing about stuff i am
playing with in SDL1.3

It sounds like you have mixed old SDL headers.

The latest version has a definition of SDL_putenv() and no
redefinition of putenv(). Is that what you’re seeing in your copy?On Thu, Feb 11, 2010 at 11:20 AM, Clear Computers wrote:

hi, i get this error when i compile a bit of my stuff against SDL1.3… any
pointers or help please :wink: i have no clue why this would happen here but not
in my other code

In file included from /usr/local/include/SDL/SDL.h:94,
??? from src/misc.h:1,
??? from src/sound.c:4:
/usr/local/include/SDL/SDL_compat.h:304: error: conflicting types for
?putenv?
/usr/include/stdlib.h:578: note: previous declaration of ?putenv? was here
make: *** [src/sound.o] Error 1

i dont get the error when i compile my testing / messing about stuff i am
playing with in SDL1.3


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

sorry sam completly forgot i posted this until i just had the same problem,
as usual, sorry, i have no clue what is going on :wink: i am using ubuntu 10.04
just svn’d latest trunk/SDL , and am still having the same issue, i am using
netbeans so a click takes me straight to the problem, and, SDL_compat.h
contains SDL_putenv.

i have definatley just downloaded totally the svn trunk/SDL as i appear to
have deleted it before, so, erm, as usual, dunno, if there is anything you
want me to try or test or check i will make sure i come back here within 2
months this time ;)On 14 February 2010 15:11, Sam Lantinga wrote:

It sounds like you have mixed old SDL headers.

The latest version has a definition of SDL_putenv() and no
redefinition of putenv(). Is that what you’re seeing in your copy?

On Thu, Feb 11, 2010 at 11:20 AM, Clear Computers wrote:

hi, i get this error when i compile a bit of my stuff against SDL1.3…
any
pointers or help please :wink: i have no clue why this would happen here but
not
in my other code

In file included from /usr/local/include/SDL/SDL.h:94,
from src/misc.h:1,
from src/sound.c:4:
/usr/local/include/SDL/SDL_compat.h:304: error: conflicting types for
?putenv?
/usr/include/stdlib.h:578: note: previous declaration of ?putenv? was
here
make: *** [src/sound.o] Error 1

i dont get the error when i compile my testing / messing about stuff i am
playing with in SDL1.3


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

checked for viruses and spam by CanIt.

http://www.canit4.3d.net.uk/