Author Topic: Undeclared Variable when building SDL  (Read 4819 times)

Offline Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
Undeclared Variable when building SDL
« on: January 11, 2008, 11:15:40 am »
Hi all,

I tried to build the SDL library like it is described here: http://wiki.codeblocks.org/index.php?title=Sdl.
First I used to import the VC prjektfile checked the dir. and linker options and start build all. Bbut after some time of compiling the following error appeared:

C:\work\SDL-1.2.13\src\video\windib\SDL_dibvideo.c:1174: error: `SYSPAL_NOSTATIC256' undeclared (first use in this function)

This also happend when I try to compile that stuff with MSYS. It exactly stops at the same point.

I searched all files of the SDL-1.2.13 for "SYSPAL_NOSTATIC256" but I can in fact not find a declaration.

Maybe someone can give me a hint?

Thanks in advance

Frank

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Undeclared Variable when building SDL
« Reply #1 on: January 11, 2008, 12:56:31 pm »
Maybe someone can give me a hint?
Why don't you just use a pre-compiled version of the SDL lib? IMHO there is a recent SDL DevPack available here: http://devpaks.org/details.php?devpak=200
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Undeclared Variable when building SDL
« Reply #2 on: January 11, 2008, 01:34:49 pm »
Hi,

Thanks for the reply.
I tried to do it myself to get a release and a debug build.
But as I ran out of ideas to fix that error of that undefined variable I will try out the prebuild stuff.

But i think that this sould not happen because the SDL 1.2.13 is provided as stable release.

And by the way the import of the file SDL.dsw ends with an error. So it might be possible that my C::B SVN1719 is not able to import that VC stuff exactly?

If someone tries the same it would be nice to give a feedback to me.

Greetings

Frank

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Undeclared Variable when building SDL
« Reply #3 on: January 11, 2008, 04:04:22 pm »
my C::B SVN1719
Oh Jesus! We are at SVN build 4802 meanwhile. I have no idea what happend in the 1719 build but we surely have done a lot meanwhile... Please upgrade! (And next time start with reporting your revision, please...)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Sensei

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Undeclared Variable when building SDL
« Reply #4 on: January 11, 2008, 05:18:01 pm »
Ahhh :-S Mistake,

I am at Version 4719 not 1719 sorry O.o

Greetings
Frank