SDL_Linked_Version() linking

I want to inform you that ‘CLINKAGE’ is missing in the declaration of
SDL_Linked_Version()
(so you cannot call it from C++)–
Gautier Portet
http://www.TLK.fr

I want to inform you that ‘CLINKAGE’ is missing in the declaration of
SDL_Linked_Version()
(so you cannot call it from C++)

In what version of SDL?
SDL 1.1.5 (CVS) shows:
extern DECLSPEC const SDL_version * SDL_Linked_Version(void);

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

“Sam Lantinga” a ?crit dans le message news:
E13ZhYy-0004wU-00 at roboto.devolution.com

I want to inform you that ‘CLINKAGE’ is missing in the declaration of
SDL_Linked_Version()
(so you cannot call it from C++)

In what version of SDL?
SDL 1.1.5 (CVS) shows:
extern DECLSPEC const SDL_version * SDL_Linked_Version(void);

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

version 1.1.4.

well, this is really weird, with this: extern DECLSPEC const SDL_version *
SDL_Linked_Version(void);
I got this error:
unresolved external symbol “struct SDL_version const * __cdecl
SDL_Linked_Version(void)” (?SDL_Linked_Version@@YAPBUSDL_version@@XZ)

and if I just add: extern C_LINKAGE DECLSPEC const SDL_version *
SDL_Linked_Version(void);
it work…