digitalmars.D.learn - bindbc.sfml , sfVideoMode , Error: undefined identifier
- Alain De Vos (15/15) May 08 2021 I try this,
- Dennis (3/4) May 08 2021 Did you define the `SFML_Graphics` version like in the README of
- Alain De Vos (10/10) May 08 2021 After adding
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" .
May 08 2021