Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#37953 - [mingw-w64-gcc] unsupported -isystem flag ?

Attached to Project: Community Packages
Opened by Michel (xantares) - Friday, 29 November 2013, 23:08 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 January 2014, 05:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

If I compile this example:
#include <stdio.h>
#include <float.h>

int main() {
printf("%g", FLT_EPSILON);
return 0;
}

With:
i686-w64-mingw32-gcc -isystem /usr/i686-w64-mingw32/include -o main.c.obj -c main.c

I get this error:
main.c:6:16: error: ‘FLT_EPSILON’ undeclared (first use in this function)
printf("%g", FLT_EPSILON);

The '-isystem /usr/i686-w64-mingw32/include' part was added by the qt cmake use file of mingw-w64-testsuite package, and I cut it down after the compilation of the test for mingw-w64-bullet failed.

It can be reproduced from this CMakeLists.txt:
cmake_minimum_required ( VERSION 2.8 )
project ( mingw-test C CXX )
find_package ( Qt4 REQUIRED QtCore)
include ( ${QT_USE_FILE} )
add_executable(main main.c)

Actually I don't know if it's a bug of gcc, qt, or cmake!

Can you provide feedback on this ?


This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 02 January 2014, 05:01 GMT
Reason for closing:  Not a bug
Additional comments about closing:  user comment: had to enable QT_INCLUDE_DIRS_NO_SYSTEM in the toolchains files

Loading...