Compiling under CodeWarrior? (MacOS)

I’m on Classic MacOS (9.1) and would like to compile the demos using
CodeWarrior Pro 5. (I’m not from a Linux background, and would like to avoid
Apple’s MPW if at all possible.)

I started out with the standard MacOS C/C++ project stationary and added the
demo’s source code, then experimented with adding various parts from the
"lib" folder to the project, since it generates a link error otherwise
(“main is undefined”). However, I’ve tried various combinations, and still
get various link errors. I can give specifics if needed, but if anyone here
has compiled any of the demos using CodeWarrior, then you already know what
needs to be done. Any help would be greatly appreciated!

I’m using the 1.2.4 SDL Dev package.

-Vern

I’m on Classic MacOS (9.1) and would like to compile the demos using
CodeWarrior Pro 5.

Are you using the CodeWarrior projects that are distributed with SDL?
Look in the main SDL directory for the “CWprojects.sea.bin” file, and use
Stuffit Expander to unpack them into the “CWprojects” folder. This
should produce a couple of CodeWarrior project files for you, "SDL.mcp"
and “SDLtest.mcp”.

Much easier than trying to assemble it all by hand.

-Roy

Are you using the CodeWarrior projects that are distributed with SDL?
Look in the main SDL directory for the “CWprojects.sea.bin” file, and use
Stuffit Expander to unpack them into the “CWprojects” folder. This
should produce a couple of CodeWarrior project files for you, "SDL.mcp"
and “SDLtest.mcp”.

Ahhh, that’s in the Source Code package, which I hadn’t downloaded. (I had
only downloaded the Development Libraries package.)

Just a suggestion: maybe the “README.MacOS” file that’s distributed with the
SDL 1.2.4. developer lib package could mention the CodeWarrior projects that
are included in the Source Code package?

Anyway, thanks for the help, Roy.

-Vern

I’m on Classic MacOS (9.1) and would like to compile the demos using
CodeWarrior Pro 5. (I’m not from a Linux background, and would like to avoid
Apple’s MPW if at all possible.)

I started out with the standard MacOS C/C++ project stationary and added the
demo’s source code, then experimented with adding various parts from the
"lib" folder to the project, since it generates a link error otherwise

I put together an intro for SDL on Mac that will someday (I hope) be
posted on idevgames.com. In the intro I cover project setup for MPW,
CodeWarrior, and Project Builder.

http://icdweb.cc.purdue.edu/~walisser/sdl/sdlintro.sit

Cheers,
DarrellOn Mon, 15 Apr 2002, Vern Jensen wrote:

I put together an intro for SDL on Mac that will someday (I hope) be
posted on idevgames.com. In the intro I cover project setup for MPW,
CodeWarrior, and Project Builder.

http://icdweb.cc.purdue.edu/~walisser/sdl/sdlintro.sit

Excellent! I’ve just downloaded it, and have already skimmed through it. The
first thing that jumped out at me was this at the beginning:

****SDL.STUB, SDL.rsrc, and SDLMain.PPC.LIB are not currently in the Mac OS
developer archive!!

Exactly! This is why trying to compile the demos was confusing at first. :slight_smile:
Not only do you need these in your project (at least, I’m assuming you do),
but there is nothing telling you that you need them!!! Anyway, it sounds
like your article will smooth over the gaps in my knowledge of SDL. I’m
still in a “checking it out” stage, and it’s frustrating when you can’t even
look at the demos because you can’t figure out how to get them to compile.
So thanks for writing the tutorial.

Also, it seems that your tutorial includes the all-important SDLmain.PPC.LIB
file that you can’t get from the developer’s package. This in itself makes
it very helpful. :slight_smile: I’ve compiled your tutorial (it works!), and will move
on to the demos next…

-Vern

P.S. Tell idevgames to put a higher priority on posting your tutorial ASAP!

I put together an intro for SDL on Mac that will someday (I hope) be
posted on idevgames.com. In the intro I cover project setup for MPW,
CodeWarrior, and Project Builder.

http://icdweb.cc.purdue.edu/~walisser/sdl/sdlintro.sit

Excellent! I’ve just downloaded it, and have already skimmed through it. The
first thing that jumped out at me was this at the beginning:

****SDL.STUB, SDL.rsrc, and SDLMain.PPC.LIB are not currently in the Mac OS
developer archive!!

Actually, they are, in the latest release. If I’m missing something, please
let me know…

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment