pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping
https://pthom.github.io/hello_imgui
MIT License
606 stars 91 forks source link

'SDL_FLASH_UNTIL_FOCUSED': undeclared identifier #26

Closed Penghmed closed 1 year ago

Penghmed commented 1 year ago

Hi, Make compile on windos, is get this error can make help? \hello_imgui\internal\backend_impls\backend_window_helper\sdl_window_helper.cpp(145,36): error C2065: 'SDL_FLASH_UNTIL_FOCUSED': undeclared identifier

Thanks you

pthom commented 1 year ago

SDL_FLASH_UNTIL_FOCUSED is a new addition to SDL. May be you are using an older version of SDL. Three solution:

  1. Comment out the line that uses this (it is not very important)$
  2. Update your version of SDL
  3. Use the easy install mode described in https://github.com/pthom/hello_imgui/tree/master/_example_integration (this will download a correct version of sdl)