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!
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!
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
Opened by Michel (xantares) - Friday, 29 November 2013, 23:08 GMT
Last edited by Allan McRae (Allan) - Thursday, 02 January 2014, 05:01 GMT
|
DetailsHello,
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
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