Need some help. Badly.

Okay, i used the following code using CodeWarrior IDE 4.0:

*> HEADER FILES
#include <stdlib.h> // ANSI C cross platform headers
#include <stdio.h>
#include <Types.h> // Standard MacOS Headers
#include <Memory.h>
#include <Quickdraw.h>
#include <Fonts.h>
#include <Events.h>
#include <Menus.h>
#include <Windows.h>
#include <TextEdit.h>
#include <Dialogs.h>
#include <OSUtils.h>
#include <ToolUtils.h>
#include <SegLoad.h>
#include <Sound.h>
#include <DrawSprocket.h> // DrawSprocket
#include <agl.h> // Apple’s OpenGL
#include <glu.h> // Used for setting perspective and making objects
#include <tk.h> // Used for loading images

And I get the following errors:

Error : declaration syntax error
main.c line 1 *> HEADER FILES

Error : declaration syntax error
div_t.h line 37 struct {

Error : identifier ‘rem’ redeclared
was declared as: ‘int’
now declared as: ‘long’
div_t.h line 40 }ldiv_t;

Error : identifier ‘ldiv_t’ redeclared
was declared as: ‘int’
now declared as: ‘int (long, long)’
cstdlib line 143 lldiv_t lldiv(long long numerator, long long denominator); /* hh 980122 added long long support */

Error : the file ‘agl.h’ cannot be opened
main.c line 18 #include <agl.h> // Apple’s OpenGL

Error : the file ‘glu.h’ cannot be opened
main.c line 19 #include <glu.h> // Used for setting perspective and making objects

Error : the file ‘tk.h’ cannot be opened
main.c line 20 #include <tk.h> // Used for loading images

The last three are frustrating me. I tried everything, and I can’t seem to shake off these errors! WHAT THE **** AM I DOING WRONG!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!

Please help!

maybe they are in GL subdirectory… so change

#include <glu.h>

to

#include <GL/glu.h>