Re: An error when using SDL in C
So after a bit of reading on cmake, here is my CMakeLists
cmake_minimum_required(VERSION 3.1.1)
project (hello)
add_executable(test test.c) target_link_libraries(test SDL2.lib) target_link_libraries(test SDL2main.lib)
My compilation commands are as follows:
cmake -G"NMake Makefiles" .
nmake
@camlorn, thanks a lot for the example in post 4. The first post's code works now, though the window title doesn't get read out loud by my screenreader. Moreover, while the window flashes onto the screen for two seconds. Also, I can't tab away from it and generally can't use my computer until it goes away. I suspect that will be fixed when I learn about the event queue but figured I'd put it out there just in case it's a sign of something going wrong on my end.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector