Errors under mingw32 with SDL includes

When I attempt to compile a c++ class that uses SDL I get multiple errors
similar to :
…\…\include\chromata/itgCanvas.h:18: syntax error before ;' In file included from C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL.h:33, from ctgFSDisplay.h:29, from ctgFSDisplay.cpp:13: C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_main.h:67:dllexport’
was not declared in this scope
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_main.h:67: warning:
__declspec' initialized and declaredextern’
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_main.h:67: syntax error
before int' In file included from C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL.h:36, from ctgFSDisplay.h:29, from ctgFSDisplay.cpp:13: C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_error.h:40:dllexport’
was not declared in this scope
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:40: warning:
__declspec' initialized and declaredextern’
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:40:
redefinition of int __declspec' C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_main.h:67:int
__declspec’ previously defined here
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:40: syntax
error before void' C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_error.h:41:dllexport’
was not declared in this scope
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:41: warning:
__declspec' initialized and declaredextern’
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:41:
redefinition of int __declspec' C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_error.h:40:int
__declspec’ previously defined here
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:41: syntax
error before char' C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_error.h:42:dllexport’
was not declared in this scope
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:42: warning:
__declspec' initialized and declaredextern’
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:42:
redefinition of int __declspec' C:\\tmp\\mingw32\\i386-mingw32msvc\\include\\SDL/SDL_error.h:41:int
__declspec’ previously defined here
C:\tmp\mingw32\i386-mingw32msvc\include\SDL/SDL_error.h:42: syntax
error before `void’

If anyone could help I would be very greatful.

Jed Kivi
@Jed_Kivi