1 |
I had ran into this before (but on Gentoo FreeBSD); maybe the compile command line |
2 |
had stray -isystem in it, thus disturbing the include search path. |
3 |
|
4 |
Pengcheng Xu |
5 |
i@××××××××.moe |
6 |
|
7 |
|
8 |
|
9 |
> H30/03/28 20:18、Bill Kenworthy <billk@×××××××××.au>のメール: |
10 |
> |
11 |
> I have a compile problem qtgui I cant figure out: |
12 |
> |
13 |
> compilation terminated. |
14 |
> make: *** [Makefile:12443: .obj/qaccessible.o] Error 1 |
15 |
> make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1 |
16 |
> In file included from |
17 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0, |
18 |
> from |
19 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62, |
20 |
> from |
21 |
> ../../include/QtCore/../../src/corelib/global/qglobal.h:109, |
22 |
> from ../../include/QtCore/qglobal.h:1, |
23 |
> from |
24 |
> ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43, |
25 |
> from ../../include/QtGui/qtguiglobal.h:1, |
26 |
> from ../../include/QtGui/../../src/gui/image/qimage.h:43, |
27 |
> from ../../include/QtGui/qimage.h:1, |
28 |
> from image/qimage_sse4.cpp:40: |
29 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25: |
30 |
> fatal error: stdlib.h: No such file or directory |
31 |
> #include_next <stdlib.h> |
32 |
> |
33 |
> |
34 |
> and of course /usr/include/stdlib.h exists |
35 |
> |
36 |
> |
37 |
> The actual code in |
38 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is: |
39 |
> |
40 |
> // Need to ensure this finds the C library's <stdlib.h> not a libstdc++ |
41 |
> // wrapper that might already be installed later in the include search path. |
42 |
> #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS |
43 |
> #include_next <stdlib.h> |
44 |
> #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS |
45 |
> |
46 |
> Hints welcome! |
47 |
> |
48 |
> |
49 |
> BillK |
50 |
> |
51 |
> |
52 |
> |