The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
2.0.4 mingw devel library out of date?
ollika


Joined: 28 Nov 2013
Posts: 18
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.
MrTAToad


Joined: 13 Feb 2014
Posts: 205
Location: Chichester, England
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?
ollika


Joined: 28 Nov 2013
Posts: 18
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?
MrTAToad


Joined: 13 Feb 2014
Posts: 205
Location: Chichester, England
Ah - you weren't using the ones in the directories Laughing

I've no idea why the directory structure is like that for mingw...
mr_tawan


Joined: 13 Jan 2014
Posts: 161
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).
2.0.4 mingw devel library out of date?
brightening-eyes


Joined: 18 Jun 2015
Posts: 21
Location: tehran, iran
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:
Quote:

MrTAToad wrote:
Quote:
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).





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
ollika


Joined: 28 Nov 2013
Posts: 18
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.