相关疑难解决方法(0)

C99 stdint.h头文件和MS Visual Studio

令我惊讶的是,我刚刚发现MS Visual Studio 2003向上缺少C99 stdint.h.我确定他们有他们的理由,但有谁知道我可以在哪里下载副本?如果没有这个头文件,我就没有uint32_t等有用类型的定义.

c c++ c99 visual-studio

113
推荐指数
6
解决办法
13万
查看次数

安装python-snappy时出错:snappy-ch:没有这样的文件或目录

我正在使用amazon ec2 ubuntu 11.04服务器

 sudo pip install python-snappy 
Run Code Online (Sandbox Code Playgroud)

我也尝试下载包并输入"sudo python setup.py install"

我收到了错误:

  running build
  running build_ext
  building 'snappy' extension
  gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c snappymodule.cc -o build/temp.linux-x86_64-2.7/snappymodule.o
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
  snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

我怎么能摆脱这个错误?

来源:https://github.com/andrix/python-snappy

python gcc

31
推荐指数
3
解决办法
3万
查看次数

标签 统计

c ×1

c++ ×1

c99 ×1

gcc ×1

python ×1

visual-studio ×1