Errors with sdl_ttf!

I’m trying out SDL_TTF, but I get compile errors with the include file!
How terrible. What is wrong with this:

extern DECLSPEC int SDLCALL TTF_Init(void);

I get the errors:

c:\sdl\bin\include\sdl_ttf.h(45) : error C2146: syntax error :
missing ‘;’ before identifier 'TTF_Init’
c:\sdl\bin\include\sdl_ttf.h(45) : fatal error C1004: unexpected end of
file found

I’m running WinXP Home, using Visual C++ 6.0.

 Thanks

I’m trying out SDL_TTF, but I get compile errors with the include file!
How terrible. What is wrong with this:

extern DECLSPEC int SDLCALL TTF_Init(void);

I get the errors:

c:\sdl\bin\include\sdl_ttf.h(45) : error C2146: syntax error :
missing ‘;’ before identifier 'TTF_Init’
c:\sdl\bin\include\sdl_ttf.h(45) : fatal error C1004: unexpected end of
file found

Make sure you’re building with the latest version of SDL.

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

Hi,

I had the same problem. The SDLCALL typedef was unknown. I think I removed
it from the prototype… Then it worked ;-)>On Tue, 25 Feb 2003 17:28:28 -0500 Colin Hart wrote.

I’m trying out SDL_TTF, but I get compile errors with the include file!
How terrible. What is wrong with this:

extern DECLSPEC int SDLCALL TTF_Init(void);

I get the errors:

c:\sdl\bin\include\sdl_ttf.h(45) : error C2146: syntax error :
missing ‘;’ before identifier 'TTF_Init’
c:\sdl\bin\include\sdl_ttf.h(45) : fatal error C1004: unexpected end of
file found

I’m running WinXP Home, using Visual C 6.0.

Thanks

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Have you considered sending in a patch to fix the problem?
-Chris

Have you considered sending in a patch to fix the problem?

It’s not a problem, people just need to upgrade their version of SDL…
like it says on the web page. :slight_smile:

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