On 6/14/23 2:21 PM, glowiak wrote:
Hello.
I am trying to get a window open using BincBC-SFML.
Sadly the compiler gives me an error:
`` Starting Performing "debug" build using /usr/bin/dmd for x86_64.
`` Up-to-date bindbc-sfml 1.0.2: target for configuration [staticBC] is
up to date.
`` Building tdvcraft ~master: building configuration [application]
``source/engine/window.d(14,25): Error: variable
`tdv.engine.window.Window.win` - no ``definition of struct `sfRenderWindow`
``Error /usr/bin/dmd failed with exit code 1.
The code is here (won't waste this place):
https://codeberg.org/glowiak/tdvcraft
Thanks in advance.
sfRenderWindow struct is just an opaque definition:
https://github.com/BindBC/bindbc-sfml/blob/c12e3d1d61db864893f156e1c9fbbf93aed7744e/source/bindbc/sfml/graphics.d#L23
Such structs you can only create pointers to it, not instances of it.
Change your definition to:
```d
private sfRenderWindow * win;
```
-Steve