SDL Error: identifier expected following '.', not 'version'
Pedro Lopes via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 27 00:55:10 PDT 2016
Hello,
whenever I try to compile this chunk of code:
[code]
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if(SDL_GetWindowWMInfo(win,&info)) {
writeln(info.subsystem);
}
[/code]
this error shows up:
Error: identifier expected following '.', not 'version'
BTW, i'm following the SDL official documentation (written for
C): https://wiki.libsdl.org/SDL_GetWindowWMInfo
Derelict SDL is fine, I have compiled SDL code before.
I Know that the word "version" is reserved for D, but how do I
circumvent this issue?
More information about the Digitalmars-d-learn
mailing list