【发布时间】:2016-03-09 06:13:09
【问题描述】:
我在呼唤任何 GCC/MinGW 大师。我尝试使用 MinGW 在 Windows 8.1 中安装一个库,并配置说 stdint.h 和 inttypes.h 丢失:
$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... no
这是我从http://www.mingw.org/category/wiki/download下载当前版本后的MinGW设置:
MINGWBASEDIR=C:\MinGW
gcc version 4.9.3 (GCC)
gcc version 4.8.1 (GCC)
GNU gdb (GDB) 7.6.1
GNU ld (GNU Binutils) 2.25.1
GNU windres (GNU Binutils) 2.25.1
GNU dlltool (GNU Binutils) 2.25.1
libtool (GNU libtool) 2.4
PExports 0.47; Originally written 1998, Anders Norlander
GNU Make 3.82.90
#define __MINGW32_VERSION 3.20
#define __W32API_VERSION 3.17
$ echo $MSYSTEM
MINGW32
$ locate stdint.h
reports nothing (updatedb is up to date)
如何在我的框中获取这些标题?
【问题讨论】:
-
我最好选择使用MinGW Installation Manager,而不是直接在windows上编译。它像Synaptic 程序一样工作。您可以检查所需的库并安装它们。