Thread overview
bindbc.sfml , sfVideoMode , Error: undefined identifier
May 08, 2021
Alain De Vos
May 08, 2021
Dennis
May 08, 2021
Alain De Vos
May 08, 2021

I try this,

import bindbc.sfml;
import bindbc.sfml.config;
import bindbc.sfml.system;
import bindbc.sfml.window;
void main(){
	bool ret=loadSFML();
	sfVideoMode m=sfVideoMode(800, 600,24);
}

But dub gives undefined identifier sdVideoMode.
Although,
https://bindbc-sfml.dpldocs.info/bindbc.sfml.window.sfVideoMode.html
I must doing something wrong ?

May 08, 2021

On Saturday, 8 May 2021 at 09:05:18 UTC, Alain De Vos wrote:

>

I must doing something wrong ?

Did you define the SFML_Graphics version like in the README of bindbc-sfml?

May 08, 2021

After adding

"versions": [
    "SFML_Audio",
    "SFML_Graphics",
    "SFML_250",
]

to dub.json it compiles.
The sfml library the freebsd os is version : "sfml-2.5.1_2" .