New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running 0.5 beta test #30

Closed
MatthewFrench opened this Issue Mar 2, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@MatthewFrench

MatthewFrench commented Mar 2, 2015

../Audio/Sound.d(90): Error: @nogc function 'Dgame.Audio.Sound.Sound.loadFromFile' cannot call non-@nogc function 'derelict.sdl2.mixer.Mix_LoadWAV'
../System/Font.d(172): Error: @nogc function 'Dgame.System.Font.Font.render!().render' cannot call non-@nogc function pointer 'TTF_RenderUTF8_Solid'
../System/Font.d(175): Error: @nogc function 'Dgame.System.Font.Font.render!().render' cannot call non-@nogc function pointer 'TTF_RenderUTF8_Shaded'
../System/Font.d(178): Error: @nogc function 'Dgame.System.Font.Font.render!().render' cannot call non-@nogc function pointer 'TTF_RenderUTF8_Blended'
../Graphic/Text.d(68): Error: template instance Dgame.System.Font.Font.render!() error instantiating
../Graphic/Texture.d(469): Error: no property 'getFormat' for type 'const(Texture)'
../System/Font.d(105): Error: @nogc function 'Dgame.System.Font.Font.~this' cannot call non-@nogc function pointer 'TTF_CloseFont'
../System/Font.d(120): Error: @nogc function 'Dgame.System.Font.Font.loadFromFile' cannot call non-@nogc function pointer 'TTF_OpenFont'
../System/Font.d(137): Error: @nogc function 'Dgame.System.Font.Font.setStyle' cannot call non-@nogc function pointer 'TTF_SetFontStyle'
../System/Font.d(148): Error: @nogc function 'Dgame.System.Font.Font.getStyle' cannot call non-@nogc function pointer 'TTF_GetFontStyle'
../Window/Window.d(374): Error: @nogc function 'Dgame.Window.Window.Window.hasQuitEvent' cannot call non-@nogc function 'derelict.sdl2.functions.SDL_QuitRequested'
main.d(66): Error: no property 'getFormat' for type 'Texture'
FAIL .dub/build/main-debug-posix.osx-x86_64-dmd_2066-475D155ABBFA067E77BD70242FDF64AE/ dgame-example executable
Error executing command run: dmd failed with exit code 1.

@Dgame

This comment has been minimized.

Owner

Dgame commented Mar 2, 2015

I know that. It's because derelict has many functions which should be @nogc but currently aren't. But aldacron will fix this soon.

@Dgame

This comment has been minimized.

Owner

Dgame commented Mar 2, 2015

@Dgame

This comment has been minimized.

Owner

Dgame commented Mar 2, 2015

@MatthewFrench I've overlooked the last one:

main.d(66): Error: no property 'getFormat' for type 'Texture'
FAIL .dub/build/main-debug-posix.osx-x86_64-dmd_2066-475D155ABBFA067E77BD70242FDF64AE/ dgame-example executable

That's indeed my mistake. Fixed in 2c17474

@Dgame

This comment has been minimized.

Owner

Dgame commented Mar 3, 2015

Fixed

@Dgame Dgame closed this Mar 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment