小编van*_*van的帖子

为什么可以找到stdint.h但cstdint不行?

我很惊讶,包括stdint.h工作,但不包括cstdint.

$ aCC sizeof.cpp
"sizeof.cpp", line 5: error #2005-D: could not open source file "cstdint"
  #include <cstdint>
                    ^

1 error detected in the compilation of "sizeof.cpp".
$ aCC --version
aCC: HP C/aC++ B3910B A.06.12 [Nov 03 2006]
Run Code Online (Sandbox Code Playgroud)

它与g ++相同:

$ g++ --version
g++ (GCC) 4.2.3
Run Code Online (Sandbox Code Playgroud)

我可以问为什么?并且,有任何方法来解决这个问题,但更新编译器?谢谢.

c++ g++ acc stdint

7
推荐指数
1
解决办法
1万
查看次数

试图编译 git 但在 linux 中找不到 libcurl

我想编译支持 http/https 的 git。我有

$ ls /usr/include/curl/
curlbuild.h  curl.h  curlrules.h  curlver.h  easy.h  mprintf.h  multi.h  stdcheaders.h  typecheck-gcc.h
$ ls /usr/lib/libcurl.*
/usr/lib/libcurl.a  /usr/lib/libcurl.la  /usr/lib/libcurl.so.3  /usr/lib/libcurl.so.3.0.0
Run Code Online (Sandbox Code Playgroud)

但是当我运行时./configure --with-curl,它仍然注意到

checking for curl_global_init in -lcurl... no
Run Code Online (Sandbox Code Playgroud)

如何解决?

ps:我的环境无法使用yum install curl-devel,我猜'curl-devel'只是提供c头文件和静态库?

linux git curl libcurl

5
推荐指数
1
解决办法
1066
查看次数

标签 统计

acc ×1

c++ ×1

curl ×1

g++ ×1

git ×1

libcurl ×1

linux ×1

stdint ×1