[AD] Allegro 5.2.1.1 + latest MinGW = off_t undefined |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro Developers <allegro-developers@xxxxxxxxxx>
- Subject: [AD] Allegro 5.2.1.1 + latest MinGW = off_t undefined
- From: Edgar Reynaldo <edgarreynaldo@xxxxxxxxxx>
- Date: Sat, 8 Oct 2016 20:31:49 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=members-allegro-cc.20150623.gappssmtp.com; s=20150623; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=VAkFP5GvtKTcCyhDfvG4dO7jEad5wzExPQkx7QEMZD0=; b=zC9+OQHOrqHHuCVf4fyb8zBe0trR6oqvAmuXINQf4UTPlXWhDcpO0PBnZHyDw9B2Pp QhIuNM/P4V+uyWvHTj5cAMhdV3o/GbJ6cDTsojfSkdTQk1tlA3Be1zR/O7+WD2G0Jeg/ Y1yMtP2tdCViB7jpwTY7h9SwRYrEZZLf4NR85x8t4UGEf82S0HsNpJ7/k8OTMQfuia2E 85IH0JOzzrJ3ofJqlzkBU3Sjx1juyST2zgPQ5ZMOOzjkeqiQPk01zJANlc/4BvFT6Z/Z ZDDxOcCFPcmOHmfLAB/Roz/SwHWm6F+ENAmAkqc383L1oG2ynZQi0uGa+iwrBdlf2BG8 JHwQ==
Hello,
I started a thread about this on a.cc :
https://www.allegro.cc/forums/thread/616526
Basically, when you compile an allegro program with the latest MinGW runtime
(3.21.1 or 3.22.2) and use -std=c++11, you get errors saying off_t is undefined.
mingw/include/sys/types.h defines off_t, but only in certain cases,
such as when _POSIX_C_SOURCE is defined before including it
(in mingwrt 3.22.2) or when _NO_OLDNAMES is undefined (in mingwrt 3.21.1).
So allegro programs compiled with -std=c++11 fail to compile.
What should we do?
Edgar