我很惊讶,包括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)
我可以问为什么?并且,有任何方法来解决这个问题,但更新编译器?谢谢.
我想编译支持 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头文件和静态库?