[SDL] TTF_Font (¿forward declaration?)
Zaka E-Lab
shanatorio at gmail.com
Tue Jun 19 07:35:59 PDT 2007
Hello all!!
I'm doing some stuff in SDL, and now I've started with SDL_ttf.
The thing is that I have these (is a lot of code to reproduce it as a
whole):
TTF_Font *fuente = NULL;
...........
fuente = TTF_RenderText_Blended(.........);
...........
delete fuente;(
When a compile a got the next messages:(that one are in Spanish, so i'll
try to translate it)
(SP)--->Dibujante.cpp:202: aviso: se detectó un posible problema en la
invocación del operador delete:
(EN)--->Dibujante.cpp:202: warning: possible trouble detected in the use
of delete operator:
(SP)--->Dibujante.cpp:162: aviso: ‘fuente’ tiene un tipo de dato incompleto
(EN)--->Dibujante.cpp:162: warning: 'fuente' has an incomplete type data.
(EN)--->/usr/include/SDL/SDL_ttf.h:42: aviso: forward declaration of
‘struct _TTF_Font’
(SP)--->Dibujante.cpp:202: nota: no se llamará ni al destructor ni al
operador delete específico de la clase, aún si se declaran cuando se
defina la clase.
(EN)--->Dibujante.cpp:202: note: It will be called neither to the
destructor nor the specific delete operator of the class, even if they
are declared when the class is defined.
I'dont understand that messages cause i think that the use that I'm
doing of the type TTF_Font and the operator "delete" is "legal". If
somebody can help me with that, I'll appreciate it.
(Sorry for my English)
Thanks for advance.
Zaka.
More information about the SDL
mailing list