(newbie) Trouble starting SDL under MacOS (given test projects)

Hello.
I’m having some trouble to try SDL.
I’m using CodeWaror under MacOS,
and a fiend of mine is able to use it under Win32.
I’m using Codewariror 4.0.4, MacOS Fr8.6, SDL 1.1.3

**1)The problem is that i’m unable to compile
the codewarior project:
a)SDL-1.1.3-source/CWprojects/SDL.mcp
or
b)SDL-1.1.3-source/CWprojects/SDLtest.mcp

*The first error messages are (a):
Error : undefined identifier 'useDistantHdwrMem’
SDL_dspvideo.c line 332 rr = NewGWorld (&offscreen,
vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useDistantHdwrMem);

Error : undefined identifier 'useLocalHdwrMem’
SDL_dspvideo.c line 338 rr = NewGWorld (&offscreen,
vformat->BitsPerPixel, &bounds, NULL, SDL_Display, useLocalHdwrMem);

Error : undefined identifier 'useDistantHdwrMem’
SDL_dspvideo.c line 603 err = NewGWorld (&dsp_back_buffer, bpp,
&bounds, SDL_CTab, SDL_Display, useDistantHdwrMem);

Error : undefined identifier 'useDistantHdwrMem’
SDL_dspvideo.c line 655 wGWorld (&temp, surface->format->BitsPerPixel,
&bounds, SDL_CTab, SDL_Display, useDistantHdwrMem);

Error : undefined identifier 'useLocalHdwrMem’
SDL_dspvideo.c line 661 wGWorld (&temp, surface->format->BitsPerPixel,
&bounds, SDL_CTab, SDL_Display, useLocalHdwrMem);

*The error messages for the test project are (b):
Couldn?t find project file ?SDLmain.PPC.lib?.

Couldn?t find project file ?SDL.DEBUG.PPC.lib?.

/I think I should compile the first to solve the second.

**2)I’m trying to use a SDL program whois working under SDL for WIN32:
I included “SDLmain.o” in my project.
But 20 errors occur such as:
Link Error : undefined ‘SDL_FreeSurface’ (code)
Referenced from ‘CTextureTile::~CTextureTile()’ in TextureTile.cpp

Link Error : undefined ‘SDL_WaitEvent’ (code)
Referenced from ‘SDL_main’ in GlobX.cpp

What can I do, or where can I find answer or help ?

Luc-Olivier de Charri?re

I’m having some trouble to try SDL.
I’m using CodeWaror under MacOS,
and a fiend of mine is able to use it under Win32.
I’m using Codewariror 4.0.4, MacOS Fr8.6, SDL 1.1.3

I had the same problems. I think you need a new set of Universal Headers
(or whatever they are called nowadays). Get them from Apple’s developer
site.