Two questions as follows. I’ve attached my build script and a minimal program.
- I’m getting a weird problem on one of my Win98 test environments.
On the other Win 98 environment and on a real Win 98 and Windows XP
it seems just fine. On calling “Mix_OpenAudio” the program locks.
Trying to terminate it results in a locked up machine.
Anybody seen anything like this? Is that Win98 environment broken? I
guess I could trace inside Mix_OpenAudio - I guess that’s the next
option.
- Have we officially dropped Win95 support or is my Win95
environment also broken? My programs appear to work just fine with
older versions of SDL.dll (not sure which old version I have on Win95
- maybe 1.2.5)
I get two dialog boxes trying to run the example - the first reads
"“The SDL.DLL file is linked to a missing export
USER32.DLL:GetAncestor”" and the second reads
"C:\WINDOWS\DESKTOP\test\test.exe A device attached to the system
is not functioning."
I’m using SDL1.2.8 and SDL_mixer 1.2.6 DLL’s in both cases.
(As a site note - I’m building targeting Windows using MinGW and fink
on MacOSX - don’t you just love gcc!)
Many thanks,
Regards,
Rob
#!/bin/sh
PREFIX=/usr/local/cross-tools
TARGET=i386-mingw32msvc
PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
export PATH
exec gcc -o sdl_test.exe sdl_test.c
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain
-lSDL -lSDL_mixer -mwindows
// the test program
#include <stdio.h>
#include “SDL.h”
#include “SDL_mixer/SDL_mixer.h”
int main(int argc, char **argv)
{
printf(“sdl test: Hello (on %s at %s)\n”,DATE,TIME);
// start SDL with audio support
if(SDL_Init(SDL_INIT_AUDIO)==-1) {
printf("SDL_Init: %s\n", SDL_GetError());
exit(1);
}
printf("sdl test: inited\n");
// open 44.1KHz, signed 16bit, system byte order,
// stereo audio, using 1024 byte chunks
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1) {
printf("Mix_OpenAudio: %s\n", Mix_GetError());
exit(2);
}
printf("sdl test: Goodbye\n");
return (0);
}