www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - bindbc.sfml , sfVideoMode , Error: undefined identifier

reply Alain De Vos <devosalain ymail.com> writes:
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
parent reply Dennis <dkorpel gmail.com> writes:
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
parent Alain De Vos <devosalain ymail.com> writes:
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"     .
May 08 2021