This is CodeWarrior for Windows I take it? You mentioned a DLL, though I’m
used to CodeWarrior only being mentioned in the context of Macs. I’ve been
struggling myself to get it to work with SDL on the Mac, as has Kyle on
this list. He finally resorted to just including the source code directly
into the project, bypassing the whole shared library deal. Not the best
solution, but apparently the only one that works.
However, up till now I had assumed the problem was the Mac implementation
of SDL, but if the same trouble exists with CodeWarrior on the PC, maybe
it’s a more general problem either with SDL or with CodeWarrior. (I’d lean
toward a combination of the two, as CodeWarrior seems to work perfectly
with everything else, and SDL seems to work perfectly in most other
development environments)
Any thoughts on this trouble, Sam?
Yes it is CodeWarrior for windows.
I went ahead and tried to just include the SDL source directly, as you
mentioned someone else did. I’m not sure if you meant include the whole
source, so before I tried that I decided to first try adding only
SDL_main.c. I really was not expecting this to work and saw absolutely no
reason why it would, but it did! Can anyone explain this?
So far I’ve set 64048016 and filled the screen white and everything seems
to be ok.
In my CodeWarrior project I have:
SDL.lib
SDLmain.lib
SDL.h
SDL_main.c
plus the usual windows libs and my source.
I also had to put SDL.dll in my \windows\system directory.
SDL.lib, SDLmain.lib, SDL.dll and SDL.h are from the
SDL-devel-1.1.2-VC6.zip file.
SDL_main.c is from the 1.1.2 source.
Oh and I actually have CodeWarrior Pro 5. This is my roomy’s program and
I’ve never used it before so I just went to Help|About Metrowerks… and it
told me it was 4.0, but the start menu says “CodeWarrior Pro 5”. hm.
Thanks for the input!
Eric.