Closed zjsxwc closed 4 years ago
I think the failure of compilation is caused by the difference of the default standard used by different gcc
. I'd like to change Makefile
rather than hardcode the constants.
Could you please try compile with -std=c99
? Change the line in your Makefile
to this:
CFLAGS = -g -Wall -std=c99
I think the failure of compilation is caused by the difference of the default standard used by different
gcc
. I'd like to changeMakefile
rather than hardcode the constants. Could you please try compile with-std=c99
? Change the line in yourMakefile
to this:CFLAGS = -g -Wall -std=c99
l get the same error as before, when i compile with -std=c99
option.
I can compile it without errors on Arch Linux. At a later time, I will test it on Ubuntu and consider how we handle the constants.
I can compile it without errors on Arch Linux. At a later time, I will test it on Ubuntu and consider how we handle the constants.
I removed the code in my new commit.
It seems that the constants SCREEN_FPS
and SCREEN_TICKS_PER_FRAME
are not used in the project.
And maybe your compiler is smart enough to auto remove the unused code, so you could compile it without errors.
I can compile it without errors on Arch Linux. At a later time, I will test it on Ubuntu and consider how we handle the constants.
I removed the code in my new commit. It seems that the constants
SCREEN_FPS
andSCREEN_TICKS_PER_FRAME
are not used in the project.And maybe your compiler is smart enough to auto remove the unused code, so you could compile it without errors.
😲 You're right. In the late stage of the development, I use SDL2 flag SDL_RENDERER_PRESENTVSYNC
to capture the FPS so they are no longer needed.
Thanks for your contribution.
改了下代码能让我在deepin下编译后运行, 以及把
win.wav
音频编码转换成16位音频,貌似我sdl不能支持24位的wav音频