Using IMGLib with Windows

Hello, I tried to keep this question away from this list for as long as
possible, but couldn’t seem to find any help elsewhere. When
I cross-compile IMGlib for Windows using Mingw32 from the SDL site and
then try to compile show.c or my programs I get and undefined reference
to IMG_Load_RW. Which of course is clearly defined and works fine when
compiling for Linux. Am I going to have to get the Windows version of
Mingw32 and boot into windows to compile this, or is this some type of
common error when compiling IMGLib for Windows?

Also, just out of curiosity what is the status of the Macintosh port?
I believe I have almost gotten Basilisk II setup and would like to be
able to do some Mac coding as well.

Hello, I tried to keep this question away from this list for as long as
possible, but couldn’t seem to find any help elsewhere. When
I cross-compile IMGlib for Windows using Mingw32 from the SDL site and
then try to compile show.c or my programs I get and undefined reference
to IMG_Load_RW. Which of course is clearly defined and works fine when
compiling for Linux. Am I going to have to get the Windows version of
Mingw32 and boot into windows to compile this, or is this some type of
common error when compiling IMGLib for Windows?

It usually means you are not loading the correct version of SDL.
Do you have an old DLL in /windows/system?

Also, just out of curiosity what is the status of the Macintosh port?
I believe I have almost gotten Basilisk II setup and would like to be
able to do some Mac coding as well.

16-bpp and 32-bpp graphics work pretty well.
Not much else is implemented yet.
There are a few people actively coding on the Mac port, so if you want
to join them, feel free. The big holes right now are palette management
(8-bit video) and audio support.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

Hello, I tried to keep this question away from this list for as long as
possible, but couldn’t seem to find any help elsewhere. When
I cross-compile IMGlib for Windows using Mingw32 from the SDL site and
then try to compile show.c or my programs I get and undefined reference
to IMG_Load_RW. Which of course is clearly defined and works fine when
compiling for Linux. Am I going to have to get the Windows version of
Mingw32 and boot into windows to compile this, or is this some type of
common error when compiling IMGLib for Windows?

It usually means you are not loading the correct version of SDL.
Do you have an old DLL in /windows/system?

No, I am running 9.13 on both the windows and linux version of the library.
Actually I though of that becuase that was what was wrong when I couldn’t
get IMGlib to compile for linux, I had to switch to the development version.
So I deliberately downoaded the development version for windows as well.
I downloaded the precompiled binary for windows. would it help if I compiled
the SDL lib myself?

Also, just out of curiosity what is the status of the Macintosh port?
I believe I have almost gotten Basilisk II setup and would like to be
able to do some Mac coding as well.

16-bpp and 32-bpp graphics work pretty well.
Not much else is implemented yet.
There are a few people actively coding on the Mac port, so if you want
to join them, feel free. The big holes right now are palette management
(8-bit video) and audio support.

I sorta figured there would only be a few people doing it for the Mac, from
what I’ve seen Mac users don’t seem to get into development much, it took me
forever just to find a free C compiler for Mac. This isn’t a stereotype by
the way, just an observation, I don’t want to offend anyone :slight_smile:
Basilisk doesn’t support audio right now, but from the luck I’ve been having
trying to get a program to work with the emulator most of SDL will probably
be finished before I can even think about developing on a Mac :(>

    -Sam Lantinga                           (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec