请帮忙!
编译代码时,我遇到了以下问题。你对libcurl问题有什么修正,特别是丢失的文件吗?我正在使用Centos 64bit。需要m32选项,因为某些共享对象是32位。
g++ -c -g -m32 -o c-wrapper.o c-wrapper.cpp -D__C_FILES "-I../include" -DLINUX
gcc -c -g -m32 -o Example_c.o `mysql_config --libs` -lcurl Example_c.c -D__C_FILES "- I../include" -DLINUX
In file included from /usr/include/curl/curl.h:43,
from Example_c.c:2:
/usr/include/curl/curlbuild.h:4:26: error: curlbuild-32.h: No such file or directory
In file included from /usr/include/curl/curl.h:44,
from Example_c.c:2:
/usr/include/curl/curlrules.h:80:4: error: #error "CURL_SIZEOF_LONG definition is missing!"
In file included from /usr/include/curl/curl.h:44,
...
谢谢!
答案 0 :(得分:0)
尝试:
sudo yum install libcurl-devel.i686