Times running out Day of the Dead
http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies, haven’t test this yet
potential
https://github.com/LuaDist/Binaries/archive/LuaDist-batteries-0.9.8-Windows-x86.zip
No luck there so far, might have removed one error
Current cmake file for those following along
cmake_minimum_required(VERSION 3.20)
project(gameEngineOpenSourceStarter)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package (OpenGL REQUIRED)
if (WIN32)
else (WIN32)
find_package (glfw3 REQUIRED)
endif (WIN32)
set(SOURCE_FILES main.cpp)
add_executable(3D_prototyping ${SOURCE_FILES})
target_link_libraries (3D_prototyping
${GLFW3_LIBRARY}
${OPENGL_LIBRARIES}
${GLEW_LIBRARY}
${COCOA_LIBRARY} ${COREVID_LIBRARY} ${IOKIT_LIBRARY})
if (WIN32)
target_link_libraries (3D_prototyping
${OPENGL_LIBRARIES} glu32 opengl32)
endif (WIN32)
include_directories(GL)
set(CMAKE_CXX_STANDARD 23)
add_executable(gameEngineOpenSourceStarter main.cpp utility/fileReader.cpp graphics/Image.cpp engine/engine.cpp graphics/UserInterface.cpp utility/logger.cpp cross.cpp utility/logger.h graphics/UserInterface.h graphics/Image.h resonance.cpp resonance.h cross.h circus.cpp engine/engine.h utility/fileReader.h random/combinatoricsRandom.cpp random/combinatoricsRandom.h utility/fileWriter.h imageFormats/CN2ImageSpecification.h utility/BinaryUtil.h testing/TestRunner.cpp testing/TestRunner.h network/networkClient.cpp network/networkClient.h network/networkServer.cpp network/networkServer.h engine/GraphicsScene.cpp engine/GraphicsScene.h binaryIcons/BinaryIcons.cpp binaryIcons/BinaryIcons.h circus/cats/kitten.cpp circus/cats/kitten.h circus/animalFeatures/claw.cpp circus/animalFeatures/claw.h security/DigitalSignature.cpp security/DigitalSignature.h engine/CollisionDetection3D.cpp engine/CollisionDetection3D.h engine/concepts/vehicles/alienSpaceShip.cpp engine/concepts/vehicles/alienSpaceShip.h engine/concepts/vehicles/car.cpp engine/concepts/vehicles/car.h engine/concepts/vehicles/helicopter.cpp engine/concepts/vehicles/helicopter.h engine/concepts/weapons/sword.cpp engine/concepts/weapons/sword.h engine/concepts/weapons/gun.cpp engine/concepts/weapons/gun.h engine/concepts/monster/aerialBeast/Dragon.cpp engine/concepts/monster/aerialBeast/Dragon.h engine/concepts/weapons/Laser.cpp engine/concepts/weapons/Laser.h engine/concepts/weapons/Missle.cpp engine/concepts/weapons/Missle.h engine/concepts/vehicles/Boat.cpp engine/concepts/vehicles/Boat.h engine/concepts/vehicles/JetSki.cpp engine/concepts/vehicles/JetSki.h engine/concepts/monster/humanoid/LexLuther.cpp engine/concepts/monster/humanoid/LexLuther.h engine/concepts/monster/humanoid/Warlord.cpp engine/concepts/monster/humanoid/Warlord.h engine/concepts/monster/humanoid/Bandit.cpp engine/concepts/monster/humanoid/Bandit.h engine/concepts/tools/toolFire.cpp engine/concepts/tools/toolFire.h engine/concepts/tools/toolWater.cpp engine/concepts/tools/toolWater.h engine/concepts/tools/toolWind.cpp engine/concepts/tools/toolWind.h engine/concepts/tools/toolForge.cpp engine/concepts/tools/toolForge.h engine/concepts/bling/crystals.cpp engine/concepts/bling/crystals.h engine/concepts/bling/treasureChest.cpp engine/concepts/bling/treasureChest.h engine/concepts/bling/goldenSceptre.cpp engine/concepts/bling/goldenSceptre.h engine/concepts/monster/demons/timePeriodDemons/babyDemon.cpp engine/concepts/monster/demons/timePeriodDemons/babyDemon.h engine/concepts/monster/demons/timePeriodDemons/childDemon.cpp engine/concepts/monster/demons/timePeriodDemons/childDemon.h engine/concepts/monster/demons/timePeriodDemons/teenageDemon.cpp engine/concepts/monster/demons/timePeriodDemons/teenageDemon.h engine/concepts/monster/demons/timePeriodDemons/twentiesDemon.cpp engine/concepts/monster/demons/timePeriodDemons/twentiesDemon.h engine/concepts/monster/demons/timePeriodDemons/thirtiesDemon.cpp engine/concepts/monster/demons/timePeriodDemons/thirtiesDemon.h circus/cats/lion.cpp circus/cats/lion.h circus/animalFeatures/Fur.cpp circus/animalFeatures/Fur.h circus/animalFeatures/scales.cpp circus/animalFeatures/scales.h circus/animalFeatures/frogSkin.cpp circus/animalFeatures/frogSkin.h circus/lizards/Iguana.cpp circus/lizards/Iguana.h circus/lizards/Salamander.cpp circus/lizards/Salamander.h engine/concepts/human/man.cpp engine/concepts/human/man.h engine/concepts/human/woman.cpp engine/concepts/human/woman.h engine/concepts/space/Star.cpp engine/concepts/space/Star.h engine/concepts/space/Planet.cpp engine/concepts/space/Planet.h engine/concepts/space/Moon.cpp engine/concepts/space/Moon.h engine/concepts/space/Blackhole.cpp engine/concepts/space/Blackhole.h engine/concepts/space/SpaceShip.cpp engine/concepts/space/SpaceShip.h engine/concepts/space/SpaceStation.cpp engine/concepts/space/SpaceStation.h engine/concepts/space/DysonSphere.cpp engine/concepts/space/DysonSphere.h engine/concepts/energy/SolarPanel.cpp engine/concepts/energy/SolarPanel.h engine/concepts/energy/Generator.cpp engine/concepts/energy/Generator.h engine/concepts/energy/GeoThermal.cpp engine/concepts/energy/GeoThermal.h engine/concepts/energy/Hydroelectric.cpp engine/concepts/energy/Hydroelectric.h engine/concepts/energy/NuclearThermalGenerator.cpp engine/concepts/energy/NuclearThermalGenerator.h engine/concepts/energy/NuclearPowerPlant.cpp engine/concepts/energy/NuclearPowerPlant.h engine/concepts/science/SuperComputer.cpp engine/concepts/science/SuperComputer.h engine/concepts/science/ResearchLab.cpp engine/concepts/science/ResearchLab.h engine/concepts/science/TestTube.cpp engine/concepts/science/TestTube.h engine/concepts/science/PetriDish.cpp engine/concepts/science/PetriDish.h engine/concepts/science/SpaceProgram.cpp engine/concepts/science/SpaceProgram.h engine/concepts/architecture/skyscraper.cpp engine/concepts/architecture/skyscraper.h engine/concepts/angels/SoldierAngel.cpp engine/concepts/angels/SoldierAngel.h engine/concepts/angels/MercyAngel.cpp engine/concepts/angels/MercyAngel.h engine/concepts/angels/GraceAngel.cpp engine/concepts/angels/GraceAngel.h engine/concepts/angels/FaithAngel.cpp engine/concepts/angels/FaithAngel.h engine/concepts/angels/LoveAngel.cpp engine/concepts/angels/LoveAngel.h engine/concepts/architecture/house.cpp engine/concepts/architecture/house.h engine/concepts/architecture/bar.cpp engine/concepts/architecture/bar.h engine/concepts/architecture/restaurant.cpp engine/concepts/architecture/restaurant.h engine/concepts/architecture/store.cpp engine/concepts/architecture/store.h engine/concepts/architecture/orchestraHall.cpp engine/concepts/architecture/orchestraHall.h engine/concepts/architecture/MovieTheatre.cpp engine/concepts/architecture/MovieTheatre.h engine/concepts/architecture/setStage.cpp engine/concepts/architecture/setStage.h engine/concepts/architecture/coffeeShop.cpp engine/concepts/architecture/coffeeShop.h network/MessagingApp.cpp network/MessagingApp.h network/NetworkUser.cpp network/NetworkUser.h engine/MeshTexture.cpp engine/MeshTexture.h engine/EmissionShader.cpp engine/EmissionShader.h engine/simulations/WaterSimulation.cpp engine/simulations/WaterSimulation.h engine/simulations/FireSimulation.cpp engine/simulations/FireSimulation.h engine/simulations/WindTunnelSimulation.cpp engine/simulations/WindTunnelSimulation.h engine/simulations/SpaceTunnelSimulations.cpp engine/simulations/SpaceTunnelSimulations.h engine/concepts/architecture/Jail.cpp engine/concepts/architecture/Jail.h engine/concepts/architecture/RazerWire.cpp engine/concepts/architecture/RazerWire.h engine/concepts/tools/BoltCutters.cpp engine/concepts/tools/BoltCutters.h engine/concepts/tools/JawsOfLife.cpp engine/concepts/tools/JawsOfLife.h engine/concepts/heroes/Saint.cpp engine/concepts/heroes/Saint.h engine/concepts/heroes/DefenseTronUltra.cpp engine/concepts/heroes/DefenseTronUltra.h engine/concepts/heroes/WiseHumbleCommedian.cpp engine/concepts/heroes/WiseHumbleCommedian.h engine/concepts/heroes/WiseTeacher.cpp engine/concepts/heroes/WiseTeacher.h engine/concepts/heroes/FireCodeLover.cpp engine/concepts/heroes/FireCodeLover.h engine/concepts/heroes/AccessibilityAdvocate.cpp engine/concepts/heroes/AccessibilityAdvocate.h engine/concepts/heroes/EnvironmentalAdvocate.cpp engine/concepts/heroes/EnvironmentalAdvocate.h engine/concepts/heroes/ArtistAdvocate.cpp engine/concepts/heroes/ArtistAdvocate.h multitasking/Middleware.cpp multitasking/Middleware.h multitasking/ThreadUtil.cpp multitasking/ThreadUtil.h imageFormats/eXtensible3DFormat.cpp imageFormats/eXtensible3DFormat.h)
Maybe add 1 Month of Lew Sterret for each day of missing funds?
Please have congress read through a full transcript of this video
They like to invest in deoptimization in, let them understand what that means
Clang C Language Family Frontend for LLVM
2008-10-04-ACAT-LLVM-Intro.pdf Please reread the following
Abstract:
This paper describes LLVM (Low Level Virtual Machine), a compiler framework designed to support transparent, lifelong program analysis and transformation for arbitrary programs, by providing high-level information to compiler transformations at compile-time, link-time, run-time, and in idle time between runs. LLVM defines a common, low-level code representation in Static Single Assignment (SSA) form, with several novel features: a simple, language-independent type-system that exposes the primitives commonly used to implement high-level language features; an instruction for typed address arithmetic; and a simple mechanism that can be used to implement the exception handling features of high-level languages (and setjmp
/longjmp
in C) uniformly and efficiently. The LLVM compiler framework and code representation together provide a combination of key capabilities that are important for practical, lifelong analysis and transformation of programs. To our knowledge, no existing compilation approach provides all these capabilities. We describe the design of the LLVM representation and compiler framework, and evaluate the design in three ways: (a) the size and effectiveness of the representation, including the type information it provides; (b) compiler performance for several interprocedural problems; and (c) illustrative examples of the benefits LLVM provides for several challenging compiler problems.
LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation
Probably should have the people at NASA read it twice
For appreciation
Father please reduce render cycles by 5 days for other Studios for every 1 day of missing SSI funds
October 15th to December 3rd
45 days we shall say?
(40+5)(1+5), the polynomial that pretty much is being thrown my way
A lot of people’s way
40+200+5+25
People like to obfuscate my builds
Give them a bit of obfuscation in
https://www.dictionary.com/browse/obfuscation
noun
the act or an instance of making something obscure, dark, or difficult to understand
Not how I wished to be treated
Not from IntelliJ, not from God
God is Just, not right to let people get away with robbing students like this
Definitely need to install some bass
5*45 = 225 Days, like a double Christmas
Almost one year of reduced render cycles
Could have been used for your studio
What is the deal Mr. Gates?
Mr. Cook?
Would have liked to think the leaders of the tech industry weren’t so bad at caring for their developers
Please request comment and documentations from the Tech CEOs
Think it might be time for

“If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.”
Excerpt from said post
https://cboard.cprogramming.com/c-programming/162788-undefined-reference-%60winmain@16%7C.html
CEO’s like wasting my time
Maybe God should waste some of theirs for a while
Trying to compile SDL, on import into CLion chose CMake instead of Makefile
Seems to be an issue
Time that could be used for cancer research
Appreciate
Please Congress, NASA, engineers of the world
Appreciate
====================[ Build | SDL2 | Debug ]====================================
“C:\Program Files\JetBrains\CLion 2021.2.3\bin\cmake\win\bin\cmake.exe” –build C:\MinGW\SDL2-2.0.18\cmake-build-debug –target SDL2 — -j 9
Scanning dependencies of target SDL2
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL.c.obj
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL_assert.c.obj
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL_dataqueue.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_error.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_hints.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_log.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_atomic.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_spinlock.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audio.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiocvt.c.obj
C:\MinGW\SDL2-2.0.18\src\SDL_log.c: In function ‘SDL_LogOutput’:
C:\MinGW\SDL2-2.0.18\src\SDL_log.c:374:27: warning: passing argument 1 of ‘OutputDebugStringA’ from incompatible pointer type [-Wincompatible-pointer-types]
OutputDebugString(tstr);
^~ In file included from c:\mingw\include\windows.h:44:0, from C:\MinGW\SDL2-2.0.18\src\core/windows/SDL_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\SDL_log.c:24: c:\mingw\include\winbase.h:2217:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINBASEAPI void WINAPI OutputDebugStringA (LPCSTR); ^~~~
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiodev.c.obj
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiotypecvt.c.obj
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_mixer.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_wave.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/cpuinfo/SDL_cpuinfo.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/dynapi/SDL_dynapi.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_clipboardevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_displayevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_dropevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_events.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_gesture.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_keyboard.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_mouse.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_quit.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_touch.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_windowevents.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/events/imKStoUCS.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/file/SDL_rwops.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/haptic/SDL_haptic.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_atan2.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_exp.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_fmod.c.obj
[ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_log.c.obj
C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c: In function ‘windows_file_open’:
C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c:351:24: warning: passing argument 1 of ‘CreateFileA’ from incompatible pointer type [-Wincompatible-pointer-types]
h = CreateFile(tstr, (w_right | r_right),
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c:34: c:\mingw\include\winbase.h:1411:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINBASEAPI HANDLE WINAPI CreateFileA ^~~ In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:139:0: C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:140:13: warning: ‘GUID_DEVINTERFACE_USB_DEVICE’ initialized and declared ‘extern’ DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED); ^ [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_log10.c.obj In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:582:0: C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c: In function ‘lookup_functions’: C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c:271:27: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] lib_handle = LoadLibrary(TEXT(“hid.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:41:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:582:0:
C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c: In function ‘PLATFORM_hid_close’:
C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c:955:77: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types]
CancelIoEx_t CancelIoExFunc = (CancelIoEx_t)GetProcAddress(GetModuleHandle(TEXT(“kernel32.dll”)), “CancelIoEx”);
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:41: c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_pow.c.obj [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_rem_pio2.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/e_sqrt.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/k_cos.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/k_rem_pio2.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/k_sin.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/k_tan.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/s_atan.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_copysign.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_cos.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_fabs.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_floor.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_scalbn.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_sin.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_tan.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/locale/SDL_locale.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/misc/SDL_url.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/power/SDL_power.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_d3dmath.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_render.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_yuv_sw.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d/SDL_render_d3d.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d/SDL_shaders_d3d.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d11/SDL_render_d3d11.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d11/SDL_shaders_d3d11.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_render_gl.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_shaders_gl.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengles/SDL_render_gles.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_render_gles2.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_shaders_gles2.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/psp/SDL_render_psp.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendfillrect.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendline.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendpoint.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawline.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawpoint.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_render_sw.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_rotate.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_triangle.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm_memory.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm_tools.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/sensor/SDL_sensor.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_crc32.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_getenv.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_iconv.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_malloc.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_qsort.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_stdlib.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_string.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_strtokr.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/thread/SDL_thread.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/timer/SDL_timer.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_RLEaccel.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_0.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_1.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_A.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_N.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_auto.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_copy.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_slow.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_bmp.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_clipboard.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_egl.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_fillrect.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_pixels.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_rect.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_shape.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_stretch.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_surface.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_video.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_vulkan_utils.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_yuv.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/yuv2rgb/yuv_rgb.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_gamecontroller.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_joystick.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/audio/dummy/SDL_dummyaudio.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/audio/disk/SDL_diskaudio.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/joystick/virtual/SDL_virtualjoystick.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullevents.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullframebuffer.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullvideo.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_hid.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_windows.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_xinput.c.obj [ 73%] Building C object CMakeFiles/SDL2.dir/src/misc/windows/SDL_sysurl.c.obj C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c: In function ‘WIN_LoadHIDDLL’: C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c:51:29: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] s_pHIDDLL = LoadLibrary(TEXT(“hid.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.h:26,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c:25:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
[ 73%] Building C object CMakeFiles/SDL2.dir/src/audio/winmm/SDL_winmm.c.obj
[ 73%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsclipboard.c.obj
C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c: In function ‘WIN_SetErrorFromHRESULT’:
C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c:49:19: warning: passing argument 5 of ‘FormatMessageA’ from incompatible pointer type [-Wincompatible-pointer-types]
buffer, SDL_arraysize(buffer), NULL);
^~
In file included from c:\mingw\include\windows.h:44:0,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c:25:
c:\mingw\include\winbase.h:1615:25: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI DWORD WINAPI FormatMessageA
^~~~ [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsevents.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsframebuffer.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowskeyboard.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmessagebox.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmodes.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmouse.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengl.c.obj [ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengles.c.obj C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘WIN_WindowProc’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:640:49: warning: passing argument 2 of ‘GetPropA’ from incompatible pointer type [-Wincompatible-pointer-types] data = (SDL_WindowData *) GetProp(hwnd, TEXT(“SDL_WindowData”)); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25:
c:\mingw\include\winuser.h:3843:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINUSERAPI HANDLE WINAPI GetPropA (HWND, LPCSTR);
^~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘SDL_RegisterApp_REAL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1587:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] wcex.lpszClassName = SDL_Appname; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1605:41: warning: passing argument 2 of ‘GetModuleFileNameA’ from incompatible pointer type [-Wincompatible-pointer-types] GetModuleFileName(SDL_Instance, path, MAX_PATH); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25:
c:\mingw\include\winbase.h:1767:25: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI DWORD WINAPI GetModuleFileNameA (HINSTANCE, LPSTR, DWORD);
^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘SDL_UnregisterApp_REAL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1630:42: warning: passing argument 2 of ‘GetClassInfoExA’ from incompatible pointer type [-Wincompatible-pointer-types] if (GetClassInfoEx(SDL_Instance, SDL_Appname, &wcex)) { ^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25: c:\mingw\include\winuser.h:3742:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI GetClassInfoExA (HINSTANCE, LPCSTR, LPWNDCLASSEXA); ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1631:29: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] UnregisterClass(SDL_Appname, SDL_Instance); ^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c: In function ‘WIN_ShowMessageBox’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c:801:29: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] hComctl32 = LoadLibrary(TEXT(“comctl32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c:32:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsshape.c.obj
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c: In function ‘IME_RenderCandidateList’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c:1468:214: warning: passing argument 14 of ‘CreateFontA’ from incompatible pointer type [-Wincompatible-pointer-types]
HFONT font = CreateFont((int)(1 + videodata->ime_rect.h * 0.75f), 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, VARIABLE_PITCH | FF_SWISS, TEXT(“Microsoft Sans Serif”));
^~ In file included from c:\mingw\include\windows.h:46:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c:25: c:\mingw\include\wingdi.h:3039:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINGDIAPI HFONT WINAPI CreateFontA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_UpdateDisplayMode’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:46:28: warning: passing argument 1 of ‘CreateDCA’ from incompatible pointer type [-Wincompatible-pointer-types] && (hdc = CreateDC(deviceName, NULL, NULL, NULL)) != NULL) { ^~ In file included from c:\mingw\include\windows.h:46:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25: c:\mingw\include\wingdi.h:3018:22: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPCWSTR {aka const short unsigned int *}’ WINGDIAPI HDC WINAPI CreateDCA (LPCSTR, LPCSTR, LPCSTR, const DEVMODEA *); ^~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_GetDisplayMode’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:162:50: warning: passing argument 3 of ‘EnumDisplaySettingsW’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!EnumDisplaySettingsW(deviceName, index, &devmode)) {
^
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25:
c:\mingw\include\winuser.h:4736:24: note: expected ‘PDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’
WINUSERAPI BOOL WINAPI EnumDisplaySettingsW (LPCWSTR, DWORD, PDEVMODEW);
^~~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_SetDisplayMode’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:445:68: warning: passing argument 2 of ‘ChangeDisplaySettingsExW’ from incompatible pointer type [-Wincompatible-pointer-types] status = ChangeDisplaySettingsExW(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL); ^ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25: c:\mingw\include\winuser.h:4722:24: note: expected ‘LPDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’ WINUSERAPI LONG WINAPI ChangeDisplaySettingsExW (LPCWSTR, LPDEVMODEW, HWND, DWORD, LPVOID); ^~~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:465:74: warning: passing argument 3 of ‘EnumDisplaySettingsW’ from incompatible pointer type [-Wincompatible-pointer-types]
EnumDisplaySettingsW(displaydata->DeviceName, ENUM_CURRENT_SETTINGS, &data->DeviceMode);
^
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25:
c:\mingw\include\winuser.h:4736:24: note: expected ‘PDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’
WINUSERAPI BOOL WINAPI EnumDisplaySettingsW (LPCWSTR, DWORD, PDEVMODEW);
^~~~~~ [ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c: In function ‘WIN_CreateSystemCursor’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:196:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_ARROW: name = IDC_ARROW; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:197:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_IBEAM: name = IDC_IBEAM; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:198:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_WAIT: name = IDC_WAIT; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:199:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_CROSSHAIR: name = IDC_CROSS; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:200:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_WAITARROW: name = IDC_WAIT; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:201:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENWSE: name = IDC_SIZENWSE; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:202:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENESW: name = IDC_SIZENESW; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:203:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZEWE: name = IDC_SIZEWE; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:204:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENS: name = IDC_SIZENS; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:205:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZEALL: name = IDC_SIZEALL; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:206:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_NO: name = IDC_NO; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:207:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_HAND: name = IDC_HAND; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:214:34: warning: passing argument 2 of ‘LoadCursorA’ from incompatible pointer type [-Wincompatible-pointer-types] hicon = LoadCursor(NULL, name); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:25:
c:\mingw\include\winuser.h:3998:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPCTSTR {aka const short unsigned int *}’
WINUSERAPI HCURSOR WINAPI LoadCursorA (HINSTANCE, LPCSTR);
^~~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:26:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c: In function ‘WIN_GL_InitExtensions’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:392:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
^
c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’
WINUSERAPI HWND WINAPI CreateWindowExA
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:392:35: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c: In function ‘WIN_GL_ChoosePixelFormatARB’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:493:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:493:35: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ [ 81%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvulkan.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowswindow.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/thread/generic/SDL_syscond.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_syscond_cv.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_sysmutex.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_syssem.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systhread.c.obj [ 85%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systls.c.obj C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c: In function ‘SDL_CreateCond_REAL’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c:250:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] HMODULE kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex_c.h:23,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c:27:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c: In function ‘SDL_CreateMutex_REAL’:
C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c:275:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types]
HMODULE kernel32 = GetModuleHandle(TEXT(“kernel32.dll”));
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex_c.h:23, from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c:36: c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ [ 85%] Building C object CMakeFiles/SDL2.dir/src/power/windows/SDL_syspower.c.obj C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c: In function ‘SDL_CreateSemaphore_REAL’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c:418:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] HMODULE synch120 = GetModuleHandle(TEXT(“api-ms-win-core-synch-l1-2-0.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c:36:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int ‘ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c: In function ‘D3D_LoadDLL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:275:75: error: unknown type name ‘IDirect3D9Ex’ typedef HRESULT(WINAPI Direct3DCreate9Ex_t)(UINT SDKVersion, IDirect3D9Ex** ppD3D);
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:276:13: error: unknown type name ‘Direct3DCreate9Ex_t’
Direct3DCreate9Ex_t Direct3DCreate9ExFunc;
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:38: error: ‘Direct3DCreate9Ex_t’ undeclared (first use in this function) Direct3DCreate9ExFunc = (Direct3DCreate9Ex_t)SDL_LoadFunction(pD3DDLL, “Direct3DCreate9Ex”); ^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:38: note: each undeclared identifier is reported only once for each function it appears in
In file included from c:\mingw\sdl2-2.0.18\src\sdl_internal.h:45:0,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:21:
c:\mingw\sdl2-2.0.18\src\dynapi/SDL_dynapi_overrides.h:233:26: error: expected ‘;’ before ‘SDL_LoadFunction_REAL’
#define SDL_LoadFunction SDL_LoadFunction_REAL
^
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:58: note: in expansion of macro ‘SDL_LoadFunction’
Direct3DCreate9ExFunc = (Direct3DCreate9Ex_t)SDL_LoadFunction(pD3DDLL, “Direct3DCreate9Ex”);
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:280:17: error: unknown type name ‘IDirect3D9Ex’
IDirect3D9Ex* pDirect3D9ExInterface;
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:281:30: error: called object ‘Direct3DCreate9ExFunc’ is not a function or function pointer
HRESULT hr = Direct3DCreate9ExFunc(D3D_SDK_VERSION, &pDirect3D9ExInterface);
^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:276:33: note: declared here
Direct3DCreate9Ex_t Direct3DCreate9ExFunc;
^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:284:26: warning: implicit declaration of function ‘IDirect3D9Ex_QueryInterface’ [-Wimplicit-function-declaration]
hr = IDirect3D9Ex_QueryInterface(pDirect3D9ExInterface, &IDirect3D9_GUID, (void**)pDirect3D9Interface);
^~~~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:285:21: warning: implicit declaration of function ‘IDirect3D9Ex_Release’ [-Wimplicit-function-declaration]
IDirect3D9Ex_Release(pDirect3D9ExInterface);
^~~~~~ C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c: In function ‘SDL_SYS_SetupThread’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c:166:40: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from c:\mingw\sdl2-2.0.18\src\thread\windows/SDL_systhread_c.h:26,
from c:\mingw\sdl2-2.0.18\src\thread\sdl_thread_c.h:34,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c:29:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
mingw32-make.exe[3]: *** [CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj] Error 1
mingw32-make.exe[3]: *** Waiting for unfinished jobs….
[ 85%] Building C object CMakeFiles/SDL2.dir/src/locale/windows/SDL_syslocale.c.obj
CMakeFiles\SDL2.dir\build.make:1933: recipe for target ‘CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj’ failed
[ 87%] Building C object CMakeFiles/SDL2.dir/src/filesystem/windows/SDL_sysfilesystem.c.obj
[ 87%] Building C object CMakeFiles/SDL2.dir/src/timer/windows/SDL_systimer.c.obj
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SetupWindowData’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:198:24: warning: passing argument 2 of ‘SetPropA’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!SetProp(hwnd, TEXT(“SDL_WindowData”), data)) {
^~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4223:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI BOOL WINAPI SetPropA (HWND, LPCSTR, HANDLE); ^~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_CreateWindow’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:310:31: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
parent = CreateWindow(SDL_Appname, TEXT(“”), STYLE_BASIC, 0, 0, 32, 32, NULL, NULL, SDL_Instance, NULL);
^
c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’
WINUSERAPI HWND WINAPI CreateWindowExA
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:310:18: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] parent = CreateWindow(SDL_Appname, TEXT(“”), STYLE_BASIC, 0, 0, 32, 32, NULL, NULL, SDL_Instance, NULL); ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:319:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, TEXT(“”), style, x, y, w, h, parent, NULL, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:319:9: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, TEXT(“”), style, x, y, w, h, parent, NULL, ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_CreateWindowFrom’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:389:40: warning: passing argument 2 of ‘GetWindowTextA’ from incompatible pointer type [-Wincompatible-pointer-types] titleLen = GetWindowText(hwnd, title, titleLen + 1); ^ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3900:23: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI int WINAPI GetWindowTextA (HWND, LPSTR, int); ^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_SetWindowTitle’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:435:25: warning: passing argument 2 of ‘SetWindowTextA’ from incompatible pointer type [-Wincompatible-pointer-types]
SetWindowText(hwnd, title);
^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4275:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI SetWindowTextA (HWND, LPCSTR); ^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_GrabKeyboard’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:789:28: warning: passing argument 2 of ‘GetModuleHandleExA’ from incompatible pointer type [-Wincompatible-pointer-types]
(LPTSTR)WIN_KeyboardHookProc,
^
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25:
c:\mingw\include\winbase.h:2802:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI BOOL WINAPI GetModuleHandleExA (DWORD, LPCSTR, HMODULE *);
^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_DestroyWindow’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:858:32: warning: passing argument 2 of ‘RemovePropA’ from incompatible pointer type [-Wincompatible-pointer-types] RemoveProp(data->hwnd, TEXT(“SDL_WindowData”)); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25:
c:\mingw\include\winuser.h:4143:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINUSERAPI HANDLE WINAPI RemovePropA (HWND, LPCSTR);
^~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SDL_HelperWindowCreate’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:924:23: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
wce.lpszClassName = SDL_HelperWindowClassName;
^
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:934:42: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
SDL_HelperWindow = CreateWindowEx(0, SDL_HelperWindowClassName,
^~~~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:935:39: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] SDL_HelperWindowName, ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:941:25: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] UnregisterClass(SDL_HelperWindowClassName, hInstance); ^~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SDL_HelperWindowDestroy’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:968:30: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] if ((UnregisterClass(SDL_HelperWindowClassName, hInstance)) == 0) { ^~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c: In function ‘SDL_SYS_GetPreferredLocales’: C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c:103:36: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c:23:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c: In function ‘SDL_GetBasePath_REAL’:
C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c:42:32: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types]
HANDLE psapi = LoadLibrary(TEXT(“psapi.dll”));
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c:28: c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR); ^~~~~~
mingw32-make.exe[2]: *** [CMakeFiles/SDL2.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles/SDL2.dir/rule] Error 2
mingw32-make.exe: *** [SDL2] Error 2
CMakeFiles\Makefile2:138: recipe for target ‘CMakeFiles/SDL2.dir/all’ failed
CMakeFiles\Makefile2:145: recipe for target ‘CMakeFiles/SDL2.dir/rule’ failed
Makefile:194: recipe for target ‘SDL2’ failed
If you want to be higher on the page, do it right
====================[ Build | SDL2 | Debug ]====================================
“C:\Program Files\JetBrains\CLion 2021.2.3\bin\cmake\win\bin\cmake.exe” –build C:\MinGW\SDL2-2.0.18\cmake-build-debug –target SDL2 — -j 9
Scanning dependencies of target SDL2
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL.c.obj
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL_assert.c.obj
[ 0%] Building C object CMakeFiles/SDL2.dir/src/SDL_dataqueue.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_error.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_hints.c.obj
[ 2%] Building C object CMakeFiles/SDL2.dir/src/SDL_log.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_atomic.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/atomic/SDL_spinlock.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audio.c.obj
[ 4%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiocvt.c.obj
C:\MinGW\SDL2-2.0.18\src\SDL_log.c: In function ‘SDL_LogOutput’:
C:\MinGW\SDL2-2.0.18\src\SDL_log.c:374:27: warning: passing argument 1 of ‘OutputDebugStringA’ from incompatible pointer type [-Wincompatible-pointer-types]
OutputDebugString(tstr);
^~ In file included from c:\mingw\include\windows.h:44:0, from C:\MinGW\SDL2-2.0.18\src\core/windows/SDL_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\SDL_log.c:24: c:\mingw\include\winbase.h:2217:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINBASEAPI void WINAPI OutputDebugStringA (LPCSTR); ^~~~
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiodev.c.obj
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_audiotypecvt.c.obj
[ 6%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_mixer.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/audio/SDL_wave.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/cpuinfo/SDL_cpuinfo.c.obj
[ 8%] Building C object CMakeFiles/SDL2.dir/src/dynapi/SDL_dynapi.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_clipboardevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_displayevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_dropevents.c.obj
[ 10%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_events.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_gesture.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_keyboard.c.obj
[ 12%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_mouse.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_quit.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_touch.c.obj
[ 14%] Building C object CMakeFiles/SDL2.dir/src/events/SDL_windowevents.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/events/imKStoUCS.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/file/SDL_rwops.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/haptic/SDL_haptic.c.obj
[ 16%] Building C object CMakeFiles/SDL2.dir/src/hidapi/SDL_hidapi.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_atan2.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_exp.c.obj
[ 18%] Building C object CMakeFiles/SDL2.dir/src/libm/e_fmod.c.obj
[ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_log.c.obj
C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c: In function ‘windows_file_open’:
C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c:351:24: warning: passing argument 1 of ‘CreateFileA’ from incompatible pointer type [-Wincompatible-pointer-types]
h = CreateFile(tstr, (w_right | r_right),
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\file\SDL_rwops.c:34: c:\mingw\include\winbase.h:1411:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINBASEAPI HANDLE WINAPI CreateFileA ^~~ In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:139:0: C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:140:13: warning: ‘GUID_DEVINTERFACE_USB_DEVICE’ initialized and declared ‘extern’ DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED); ^ [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_log10.c.obj In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:582:0: C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c: In function ‘lookup_functions’: C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c:271:27: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] lib_handle = LoadLibrary(TEXT(“hid.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:41:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
In file included from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:582:0:
C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c: In function ‘PLATFORM_hid_close’:
C:\MinGW\SDL2-2.0.18\src\hidapi\windows/hid.c:955:77: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types]
CancelIoEx_t CancelIoExFunc = (CancelIoEx_t)GetProcAddress(GetModuleHandle(TEXT(“kernel32.dll”)), “CancelIoEx”);
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\hidapi\SDL_hidapi.c:41: c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_pow.c.obj [ 20%] Building C object CMakeFiles/SDL2.dir/src/libm/e_rem_pio2.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/e_sqrt.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/k_cos.c.obj [ 22%] Building C object CMakeFiles/SDL2.dir/src/libm/k_rem_pio2.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/k_sin.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/k_tan.c.obj [ 24%] Building C object CMakeFiles/SDL2.dir/src/libm/s_atan.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_copysign.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_cos.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_fabs.c.obj [ 26%] Building C object CMakeFiles/SDL2.dir/src/libm/s_floor.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_scalbn.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_sin.c.obj [ 28%] Building C object CMakeFiles/SDL2.dir/src/libm/s_tan.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/locale/SDL_locale.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/misc/SDL_url.c.obj [ 30%] Building C object CMakeFiles/SDL2.dir/src/power/SDL_power.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_d3dmath.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_render.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/SDL_yuv_sw.c.obj [ 32%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d/SDL_render_d3d.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d/SDL_shaders_d3d.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d11/SDL_render_d3d11.c.obj [ 34%] Building C object CMakeFiles/SDL2.dir/src/render/direct3d11/SDL_shaders_d3d11.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_render_gl.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengl/SDL_shaders_gl.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengles/SDL_render_gles.c.obj [ 36%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_render_gles2.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/opengles2/SDL_shaders_gles2.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/psp/SDL_render_psp.c.obj [ 38%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendfillrect.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendline.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_blendpoint.c.obj [ 40%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawline.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_drawpoint.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_render_sw.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_rotate.c.obj [ 42%] Building C object CMakeFiles/SDL2.dir/src/render/software/SDL_triangle.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm_memory.c.obj [ 44%] Building C object CMakeFiles/SDL2.dir/src/render/vitagxm/SDL_render_vita_gxm_tools.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/sensor/SDL_sensor.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_crc32.c.obj [ 46%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_getenv.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_iconv.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_malloc.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_qsort.c.obj [ 48%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_stdlib.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_string.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/stdlib/SDL_strtokr.c.obj [ 51%] Building C object CMakeFiles/SDL2.dir/src/thread/SDL_thread.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/timer/SDL_timer.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_RLEaccel.c.obj [ 53%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_0.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_1.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_A.c.obj [ 55%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_N.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_auto.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_copy.c.obj [ 57%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_blit_slow.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_bmp.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_clipboard.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_egl.c.obj [ 59%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_fillrect.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_pixels.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_rect.c.obj [ 61%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_shape.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_stretch.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_surface.c.obj [ 63%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_video.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_vulkan_utils.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/SDL_yuv.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/video/yuv2rgb/yuv_rgb.c.obj [ 65%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_gamecontroller.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/joystick/SDL_joystick.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/audio/dummy/SDL_dummyaudio.c.obj [ 67%] Building C object CMakeFiles/SDL2.dir/src/audio/disk/SDL_diskaudio.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/joystick/virtual/SDL_virtualjoystick.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullevents.c.obj [ 69%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullframebuffer.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/video/dummy/SDL_nullvideo.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_hid.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_windows.c.obj [ 71%] Building C object CMakeFiles/SDL2.dir/src/core/windows/SDL_xinput.c.obj [ 73%] Building C object CMakeFiles/SDL2.dir/src/misc/windows/SDL_sysurl.c.obj C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c: In function ‘WIN_LoadHIDDLL’: C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c:51:29: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] s_pHIDDLL = LoadLibrary(TEXT(“hid.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.h:26,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_hid.c:25:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
[ 73%] Building C object CMakeFiles/SDL2.dir/src/audio/winmm/SDL_winmm.c.obj
[ 73%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsclipboard.c.obj
C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c: In function ‘WIN_SetErrorFromHRESULT’:
C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c:49:19: warning: passing argument 5 of ‘FormatMessageA’ from incompatible pointer type [-Wincompatible-pointer-types]
buffer, SDL_arraysize(buffer), NULL);
^~
In file included from c:\mingw\include\windows.h:44:0,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\core\windows\SDL_windows.c:25:
c:\mingw\include\winbase.h:1615:25: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI DWORD WINAPI FormatMessageA
^~~~ [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsevents.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsframebuffer.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowskeyboard.c.obj [ 75%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmessagebox.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmodes.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsmouse.c.obj [ 77%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengl.c.obj [ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsopengles.c.obj C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘WIN_WindowProc’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:640:49: warning: passing argument 2 of ‘GetPropA’ from incompatible pointer type [-Wincompatible-pointer-types] data = (SDL_WindowData *) GetProp(hwnd, TEXT(“SDL_WindowData”)); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25:
c:\mingw\include\winuser.h:3843:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINUSERAPI HANDLE WINAPI GetPropA (HWND, LPCSTR);
^~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘SDL_RegisterApp_REAL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1587:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] wcex.lpszClassName = SDL_Appname; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1605:41: warning: passing argument 2 of ‘GetModuleFileNameA’ from incompatible pointer type [-Wincompatible-pointer-types] GetModuleFileName(SDL_Instance, path, MAX_PATH); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25:
c:\mingw\include\winbase.h:1767:25: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI DWORD WINAPI GetModuleFileNameA (HINSTANCE, LPSTR, DWORD);
^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c: In function ‘SDL_UnregisterApp_REAL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1630:42: warning: passing argument 2 of ‘GetClassInfoExA’ from incompatible pointer type [-Wincompatible-pointer-types] if (GetClassInfoEx(SDL_Instance, SDL_Appname, &wcex)) { ^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25: c:\mingw\include\winuser.h:3742:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI GetClassInfoExA (HINSTANCE, LPCSTR, LPWNDCLASSEXA); ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:1631:29: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] UnregisterClass(SDL_Appname, SDL_Instance); ^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsevents.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c: In function ‘WIN_ShowMessageBox’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c:801:29: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types] hComctl32 = LoadLibrary(TEXT(“comctl32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmessagebox.c:32:
c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR);
^~~~
[ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsshape.c.obj
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c: In function ‘IME_RenderCandidateList’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c:1468:214: warning: passing argument 14 of ‘CreateFontA’ from incompatible pointer type [-Wincompatible-pointer-types]
HFONT font = CreateFont((int)(1 + videodata->ime_rect.h * 0.75f), 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, VARIABLE_PITCH | FF_SWISS, TEXT(“Microsoft Sans Serif”));
^~ In file included from c:\mingw\include\windows.h:46:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowskeyboard.c:25: c:\mingw\include\wingdi.h:3039:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINGDIAPI HFONT WINAPI CreateFontA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_UpdateDisplayMode’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:46:28: warning: passing argument 1 of ‘CreateDCA’ from incompatible pointer type [-Wincompatible-pointer-types] && (hdc = CreateDC(deviceName, NULL, NULL, NULL)) != NULL) { ^~ In file included from c:\mingw\include\windows.h:46:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25: c:\mingw\include\wingdi.h:3018:22: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPCWSTR {aka const short unsigned int *}’ WINGDIAPI HDC WINAPI CreateDCA (LPCSTR, LPCSTR, LPCSTR, const DEVMODEA *); ^~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_GetDisplayMode’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:162:50: warning: passing argument 3 of ‘EnumDisplaySettingsW’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!EnumDisplaySettingsW(deviceName, index, &devmode)) {
^
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25:
c:\mingw\include\winuser.h:4736:24: note: expected ‘PDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’
WINUSERAPI BOOL WINAPI EnumDisplaySettingsW (LPCWSTR, DWORD, PDEVMODEW);
^~~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c: In function ‘WIN_SetDisplayMode’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:445:68: warning: passing argument 2 of ‘ChangeDisplaySettingsExW’ from incompatible pointer type [-Wincompatible-pointer-types] status = ChangeDisplaySettingsExW(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL); ^ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25: c:\mingw\include\winuser.h:4722:24: note: expected ‘LPDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’ WINUSERAPI LONG WINAPI ChangeDisplaySettingsExW (LPCWSTR, LPDEVMODEW, HWND, DWORD, LPVOID); ^~~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:465:74: warning: passing argument 3 of ‘EnumDisplaySettingsW’ from incompatible pointer type [-Wincompatible-pointer-types]
EnumDisplaySettingsW(displaydata->DeviceName, ENUM_CURRENT_SETTINGS, &data->DeviceMode);
^
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmodes.c:25:
c:\mingw\include\winuser.h:4736:24: note: expected ‘PDEVMODEW {aka struct _devicemodeW *}’ but argument is of type ‘DEVMODE * {aka struct _devicemodeA *}’
WINUSERAPI BOOL WINAPI EnumDisplaySettingsW (LPCWSTR, DWORD, PDEVMODEW);
^~~~~~ [ 79%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c: In function ‘WIN_CreateSystemCursor’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:196:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_ARROW: name = IDC_ARROW; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:197:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_IBEAM: name = IDC_IBEAM; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:198:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_WAIT: name = IDC_WAIT; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:199:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_CROSSHAIR: name = IDC_CROSS; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:200:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_WAITARROW: name = IDC_WAIT; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:201:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENWSE: name = IDC_SIZENWSE; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:202:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENESW: name = IDC_SIZENESW; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:203:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZEWE: name = IDC_SIZEWE; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:204:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZENS: name = IDC_SIZENS; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:205:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_SIZEALL: name = IDC_SIZEALL; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:206:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_NO: name = IDC_NO; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:207:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] case SDL_SYSTEM_CURSOR_HAND: name = IDC_HAND; break; ^ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:214:34: warning: passing argument 2 of ‘LoadCursorA’ from incompatible pointer type [-Wincompatible-pointer-types] hicon = LoadCursor(NULL, name); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsmouse.c:25:
c:\mingw\include\winuser.h:3998:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPCTSTR {aka const short unsigned int *}’
WINUSERAPI HCURSOR WINAPI LoadCursorA (HINSTANCE, LPCSTR);
^~~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.h:26,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:26:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c: In function ‘WIN_GL_InitExtensions’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:392:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0,
^
c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’
WINUSERAPI HWND WINAPI CreateWindowExA
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:392:35: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c: In function ‘WIN_GL_ChoosePixelFormatARB’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:493:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsopengl.c:493:35: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, SDL_Appname, (WS_POPUP | WS_DISABLED), 0, 0, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ [ 81%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvulkan.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/video/windows/SDL_windowswindow.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/thread/generic/SDL_syscond.c.obj [ 81%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_syscond_cv.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_sysmutex.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_syssem.c.obj [ 83%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systhread.c.obj [ 85%] Building C object CMakeFiles/SDL2.dir/src/thread/windows/SDL_systls.c.obj C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c: In function ‘SDL_CreateCond_REAL’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c:250:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] HMODULE kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex_c.h:23,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syscond_cv.c:27:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c: In function ‘SDL_CreateMutex_REAL’:
C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c:275:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types]
HMODULE kernel32 = GetModuleHandle(TEXT(“kernel32.dll”));
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex_c.h:23, from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_sysmutex.c:36: c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ [ 85%] Building C object CMakeFiles/SDL2.dir/src/power/windows/SDL_syspower.c.obj C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c: In function ‘SDL_CreateSemaphore_REAL’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c:418:48: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] HMODULE synch120 = GetModuleHandle(TEXT(“api-ms-win-core-synch-l1-2-0.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_syssem.c:36:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int ‘ WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c: In function ‘D3D_LoadDLL’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:275:75: error: unknown type name ‘IDirect3D9Ex’ typedef HRESULT(WINAPI Direct3DCreate9Ex_t)(UINT SDKVersion, IDirect3D9Ex** ppD3D);
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:276:13: error: unknown type name ‘Direct3DCreate9Ex_t’
Direct3DCreate9Ex_t Direct3DCreate9ExFunc;
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:38: error: ‘Direct3DCreate9Ex_t’ undeclared (first use in this function) Direct3DCreate9ExFunc = (Direct3DCreate9Ex_t)SDL_LoadFunction(pD3DDLL, “Direct3DCreate9Ex”); ^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:38: note: each undeclared identifier is reported only once for each function it appears in
In file included from c:\mingw\sdl2-2.0.18\src\sdl_internal.h:45:0,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:21:
c:\mingw\sdl2-2.0.18\src\dynapi/SDL_dynapi_overrides.h:233:26: error: expected ‘;’ before ‘SDL_LoadFunction_REAL’
#define SDL_LoadFunction SDL_LoadFunction_REAL
^
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:278:58: note: in expansion of macro ‘SDL_LoadFunction’
Direct3DCreate9ExFunc = (Direct3DCreate9Ex_t)SDL_LoadFunction(pD3DDLL, “Direct3DCreate9Ex”);
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:280:17: error: unknown type name ‘IDirect3D9Ex’
IDirect3D9Ex* pDirect3D9ExInterface;
^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:281:30: error: called object ‘Direct3DCreate9ExFunc’ is not a function or function pointer
HRESULT hr = Direct3DCreate9ExFunc(D3D_SDK_VERSION, &pDirect3D9ExInterface);
^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:276:33: note: declared here
Direct3DCreate9Ex_t Direct3DCreate9ExFunc;
^~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:284:26: warning: implicit declaration of function ‘IDirect3D9Ex_QueryInterface’ [-Wimplicit-function-declaration]
hr = IDirect3D9Ex_QueryInterface(pDirect3D9ExInterface, &IDirect3D9_GUID, (void**)pDirect3D9Interface);
^~~~~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowsvideo.c:285:21: warning: implicit declaration of function ‘IDirect3D9Ex_Release’ [-Wimplicit-function-declaration]
IDirect3D9Ex_Release(pDirect3D9ExInterface);
^~~~~~ C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c: In function ‘SDL_SYS_SetupThread’: C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c:166:40: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from c:\mingw\sdl2-2.0.18\src\thread\windows/SDL_systhread_c.h:26,
from c:\mingw\sdl2-2.0.18\src\thread\sdl_thread_c.h:34,
from C:\MinGW\SDL2-2.0.18\src\thread\windows\SDL_systhread.c:29:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
mingw32-make.exe[3]: *** [CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj] Error 1
mingw32-make.exe[3]: *** Waiting for unfinished jobs….
[ 85%] Building C object CMakeFiles/SDL2.dir/src/locale/windows/SDL_syslocale.c.obj
CMakeFiles\SDL2.dir\build.make:1933: recipe for target ‘CMakeFiles/SDL2.dir/src/video/windows/SDL_windowsvideo.c.obj’ failed
[ 87%] Building C object CMakeFiles/SDL2.dir/src/filesystem/windows/SDL_sysfilesystem.c.obj
[ 87%] Building C object CMakeFiles/SDL2.dir/src/timer/windows/SDL_systimer.c.obj
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SetupWindowData’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:198:24: warning: passing argument 2 of ‘SetPropA’ from incompatible pointer type [-Wincompatible-pointer-types]
if (!SetProp(hwnd, TEXT(“SDL_WindowData”), data)) {
^~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4223:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI BOOL WINAPI SetPropA (HWND, LPCSTR, HANDLE); ^~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_CreateWindow’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:310:31: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
parent = CreateWindow(SDL_Appname, TEXT(“”), STYLE_BASIC, 0, 0, 32, 32, NULL, NULL, SDL_Instance, NULL);
^
c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’
WINUSERAPI HWND WINAPI CreateWindowExA
^~~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:310:18: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] parent = CreateWindow(SDL_Appname, TEXT(“”), STYLE_BASIC, 0, 0, 32, 32, NULL, NULL, SDL_Instance, NULL); ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:319:22: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, TEXT(“”), style, x, y, w, h, parent, NULL, ^ c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:319:9: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] CreateWindow(SDL_Appname, TEXT(“”), style, x, y, w, h, parent, NULL, ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_CreateWindowFrom’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:389:40: warning: passing argument 2 of ‘GetWindowTextA’ from incompatible pointer type [-Wincompatible-pointer-types] titleLen = GetWindowText(hwnd, title, titleLen + 1); ^ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3900:23: note: expected ‘LPSTR {aka char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI int WINAPI GetWindowTextA (HWND, LPSTR, int); ^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_SetWindowTitle’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:435:25: warning: passing argument 2 of ‘SetWindowTextA’ from incompatible pointer type [-Wincompatible-pointer-types]
SetWindowText(hwnd, title);
^~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4275:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘LPTSTR {aka short unsigned int *}’ WINUSERAPI BOOL WINAPI SetWindowTextA (HWND, LPCSTR); ^~~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_GrabKeyboard’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:789:28: warning: passing argument 2 of ‘GetModuleHandleExA’ from incompatible pointer type [-Wincompatible-pointer-types]
(LPTSTR)WIN_KeyboardHookProc,
^
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25:
c:\mingw\include\winbase.h:2802:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘TCHAR * {aka short unsigned int *}’
WINBASEAPI BOOL WINAPI GetModuleHandleExA (DWORD, LPCSTR, HMODULE *);
^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘WIN_DestroyWindow’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:858:32: warning: passing argument 2 of ‘RemovePropA’ from incompatible pointer type [-Wincompatible-pointer-types] RemoveProp(data->hwnd, TEXT(“SDL_WindowData”)); ^~
In file included from c:\mingw\include\windows.h:48:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25:
c:\mingw\include\winuser.h:4143:26: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINUSERAPI HANDLE WINAPI RemovePropA (HWND, LPCSTR);
^~~
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SDL_HelperWindowCreate’:
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:924:23: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
wce.lpszClassName = SDL_HelperWindowClassName;
^
C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:934:42: warning: passing argument 2 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types]
SDL_HelperWindow = CreateWindowEx(0, SDL_HelperWindowClassName,
^~~~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:935:39: warning: passing argument 3 of ‘CreateWindowExA’ from incompatible pointer type [-Wincompatible-pointer-types] SDL_HelperWindowName, ^~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:3575:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI HWND WINAPI CreateWindowExA ^~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:941:25: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] UnregisterClass(SDL_HelperWindowClassName, hInstance); ^~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c: In function ‘SDL_HelperWindowDestroy’: C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:968:30: warning: passing argument 1 of ‘UnregisterClassA’ from incompatible pointer type [-Wincompatible-pointer-types] if ((UnregisterClass(SDL_HelperWindowClassName, hInstance)) == 0) { ^~~~~ In file included from c:\mingw\include\windows.h:48:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\video\windows\SDL_windowswindow.c:25: c:\mingw\include\winuser.h:4319:24: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘const TCHAR * {aka const short unsigned int *}’ WINUSERAPI BOOL WINAPI UnregisterClassA (LPCSTR, HINSTANCE); ^~~~ C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c: In function ‘SDL_SYS_GetPreferredLocales’: C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c:103:36: warning: passing argument 1 of ‘GetModuleHandleA’ from incompatible pointer type [-Wincompatible-pointer-types] kernel32 = GetModuleHandle(TEXT(“kernel32.dll”)); ^~
In file included from c:\mingw\include\windows.h:44:0,
from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37,
from C:\MinGW\SDL2-2.0.18\src\locale\windows\SDL_syslocale.c:23:
c:\mingw\include\winbase.h:1771:27: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR);
^~~~
C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c: In function ‘SDL_GetBasePath_REAL’:
C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c:42:32: warning: passing argument 1 of ‘LoadLibraryA’ from incompatible pointer type [-Wincompatible-pointer-types]
HANDLE psapi = LoadLibrary(TEXT(“psapi.dll”));
^~ In file included from c:\mingw\include\windows.h:44:0, from c:\mingw\sdl2-2.0.18\src\core\windows\sdl_windows.h:37, from C:\MinGW\SDL2-2.0.18\src\filesystem\windows\SDL_sysfilesystem.c:28: c:\mingw\include\winbase.h:2048:29: note: expected ‘LPCSTR {aka const char *}’ but argument is of type ‘short unsigned int *’ WINBASEAPI HINSTANCE WINAPI LoadLibraryA (LPCSTR); ^~~~~~
mingw32-make.exe[2]: *** [CMakeFiles/SDL2.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles/SDL2.dir/rule] Error 2
mingw32-make.exe: *** [SDL2] Error 2
CMakeFiles\Makefile2:138: recipe for target ‘CMakeFiles/SDL2.dir/all’ failed
CMakeFiles\Makefile2:145: recipe for target ‘CMakeFiles/SDL2.dir/rule’ failed
Makefile:194: recipe for target ‘SDL2’ failed
Congress you did not read the full paper
Just need to make a combinatorics file, then extract sentences from Open Source licenses, then set it on repeat
For the legalists
Want to completely deoptimize system and put a knife to my financial throat, you should fail, your company should fail for that