2.0.4 mingw devel library out of date?

Hi,

I downloaded SDL2-devel-2.0.4-mingw.tar.gz from the official download page and it seems to have some older version of SDL instead.

At least the headers seem to be out of date for a 2.0.4 version. Didn’t do much digging but at least SDL_GetDisplayDPI was not included.

I found that mingw compile my programming with 2.0.4 find (and it has DPI function call in it too). Are you using the 64 or 32 libraries?

I took another look and indeed the correct includes are there under the i686-w64-mingw32/include and x86_64-w64-mingw32/include dirs

But for some reason there was another include dir on the upper level with old files. Why is that?

Ah - you weren’t using the ones in the directories [Laughing]

I’ve no idea why the directory structure is like that for mingw…

MrTAToad wrote:

Ah - you weren’t using the ones in the directories [Laughing]

I’ve no idea why the directory structure is like that for mingw…

My guess is mingw is also available in Linux … as a cross compiling toolchain I believe. It would need to have the lib+include file in the different directory (otherwise it would clash with the system ones).

hello,
yes mingw is available in mingw
but for headers, i don’t think that they should be different!, because
the function definitions and structures are the same
just library files should be different

???-??-?? ??:?? +??:?? ???, mr_tawan <mr_tawan at hotmail.com>:>

MrTAToad wrote:

Ah - you weren’t using the ones in the directories [Laughing]

I’ve no idea why the directory structure is like that for mingw…

My guess is mingw is also available in Linux … as a cross compiling
toolchain I believe. It would need to have the lib+include file in the
different directory (otherwise it would clash with the system ones).

Yes. I definitely think there is something fishy about the package. Seems that in addition to the mingw dev distributables it includes some old version(?) of includes and visual studio libs.