SDL_ttf vc++ compile problem

Hi there!

I’m writing a 2D arcade style game using SDL and after having spent some times on the core game itself, i’m currently working on the GUI… one of the things i want to do is parsing font files so i’ve decided to use SDL_ttf since it seems to be excellent and simple to use… only… even if it seems easy to use i have a problem, i can’t compile it under visual c++6, when i try to compile SDL_ttf.c i get these messages:

error C2061: syntax error : identifier 'TTF_Init’
error C2059: syntax error : ';'
error C2059: syntax error : 'type’
error C2061: syntax error : identifier 'TTF_OpenFont’
error C2059: syntax error : ';'
error C2059: syntax error : ‘type’

etc…

all the extern declarations seem to cause troubles…

Anybody have encountered this problem?
Anybody have a suggestion?

Thank you very very much!

Hi there!

I’m writing a 2D arcade style game using SDL and after having spent some times on the core game itself, i’m currently working on the GUI… one of the things i want to do is parsing font files so i’ve decided to use SDL_ttf since it seems to be excellent and simple to use… only… even if it seems easy to use i have a problem, i can’t compile it under visual c++6, when i try to compile SDL_ttf.c i get these messages:

[snipped]

Is there any reason you can’t use the provided development package for VC6?

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

Hi,

in fact i’m using the development package!!
i unzipped the SDL_ttf-2.0.5.zip file and then the VisualC.zip inside it.

Then i click on the .dsw project file and when visual c++ 6 launch there’s a message saying that the project was made under an older version of vc++ and must be converted. I click OK and the project is launched. But when i right click on the file SDL_ttf.c i get these error messages…

hum, do i need some more additional files? what am i doing wrong??

thanx!!

hey, i forgot to tell you…
i’m under Windows 2000 and use vc++6

also i downloaded the freetype2 library, binary and source…

may be it is a problem in the path to the freetype2 lib…
but it seems that in the VisualC.zip there’s already the freetype lib,
freetype200MT.lib, and some freetype .h files and the vc++ project seems to be already configured.

Do i need to compile the freetype library separately and
build the dll previously, or do the SDL_ttf-2.0.5.zip and
VisualC.zip files have all the stuff they need to compile?

thanx again…