import bindbc.sdl;
import bindbc.loader;


SDL_version ver;
SDL_GetVersion(&ver);
                
writeln("version = ", ver); // runs and displays: version = SDL_version(2, 30, 2)
        
writeln("version = ", SDL_GetVersion(&ver)); // compile fails with
                
// template `writeln` is not callable using argument types `!()(string, void)` // C:\D\dmd2\windows\bin64\..\..\src\phobos\std\stdio.d(4249,6): Candidate is: `writeln(T...)(T args)`
// Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.       

I'll confess I can't make heads or tails out of the error messages. Is this impossible or is there some way to make writeln happy?
  • What I thought w... WhatMeWorry via Digitalmars-d-learn
    • Re: What I ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to