Archived

This topic is now archived and is closed to further replies.

TheRealMAN11

SDL error

Recommended Posts

OK I AM TRYING TO INTLIZE SDL UNDER X, AND LAST NIGHT IT WAS WORKING FINE, THEN TODAY I TRY TO DO IT AND I GET SEGMENTATION FAULTS UPON CALLING SDL_INITI OR WHAT EVER THAT FUNCITON IS. CAN SOMEONE HELP?
IT IS FOOLISH FOR A WISE MAN TO BE SILENT, BUT WISE FOR A FOOL. MATTHEW WEBMASTER WWW.MATT-LAND.COM ALL YOUR XBOX BASE ARE BELONG TO NINTENDO.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
No need to yell...

The segfault is probably caused by an uninitialized pointer. That''s about all I can say given the amount of detail you provided.

Providing code sample, telling us which version of SDL, on which system, how it was installed (source tarball, CVS, RPM, DEB, etc), if you tried to reinstall it, etc, would help a lot.

Ah and using lower case would help too.

Share this post


Link to post
Share on other sites
GO READ THE THREAD, THEY DID IT AGAIN IN THE LOUNGE TO FIND OUT WHY I AM YELLING, I CAN''T HELP IT. I FOUND THE PROBLEM, I WAS CREATING A UINT32 TYPE GOLBAL VAR AND FOR SOME REASON THIS CAUSED A SEGFAULT. ONCE I PUT THE VAR DECLEARATION IN MY MAIN FUNCTION THE PROGRAM WORKED.


IT IS FOOLISH FOR A WISE MAN TO BE SILENT, BUT WISE FOR A FOOL.

MATTHEW
WEBMASTER
WWW.MATT-LAND.COM

ALL YOUR XBOX BASE ARE BELONG TO NINTENDO.

Share this post


Link to post
Share on other sites