Errors with SDL_ttf!

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

Problem is, I have the newest version of SDL_ttf, and I even downloaded
again to double check. 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

Again, I’m running WinXP Home, using MSVC++ 6.0.
-Thanks

Colin Hart wrote:

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

Problem is, I have the newest version of SDL_ttf, and I even downloaded
again to double check. 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

Again, I’m running WinXP Home, using MSVC++ 6.0.
-Thanks


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

I believe that’s an error in your own code. Maybe something like a
missing ‘;’ at the end of a class defenition or something alike! Those
things usually show up as “errors” in other code. I’ve seen those kind
of errors telling me that stdio.h has errors witch we all know it’snt
true! So I advise you to check your header files for those kind of
problems. Good luck :slight_smile:

Sam meant the latest version of SDL itself ;-)> ----- Original Message -----

From: xempest@comcast.net (Colin Hart)
To:
Sent: Friday, February 28, 2003 6:27 PM
Subject: [SDL] Re: Errors with SDL_ttf!

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

Problem is, I have the newest version of SDL_ttf, and I even downloaded
again to double check. 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

Again, I’m running WinXP Home, using MSVC++ 6.0.
-Thanks


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

It could be a problem, more a trick, with pre-compiled headers. Are you
using MFC? There is any ‘#include “stdafx.h”’ on your files?

If it is, you should put the ‘#include “SDL_ttf.h”’ (or something like
this) into the stdafx.h file.

I got some problems like yours, and proceeding as above solved them…

I hope it could help.

Colin Hart wrote:>>It’s not a problem, people just need to upgrade their version of SDL…

like it says on the web page. :slight_smile:

Problem is, I have the newest version of SDL_ttf, and I even downloaded
again to double check. 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

Again, I’m running WinXP Home, using MSVC++ 6.0.
-Thanks


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

Adriano Del Vigna de Almeida
JIT JC
@Adriano_Del_Vigna_de
ICQ #:14898488
Curitiba - Brasil

It could be a problem, more a trick, with pre-compiled headers. Are
you
using MFC? There is any ‘#include “stdafx.h”’ on your files?

If it is, you should put the ‘#include “SDL_ttf.h”’ (or something like
this) into the stdafx.h file.

I got some problems like yours, and proceeding as above solved them…

I hope it could help.

Nope, I definetely have SDL setup correctly, and no STDAFX used. No MFC
either.