0

请帮忙!

编译我的代码时遇到以下问题。您对 libcurl 问题(尤其是丢失的文件)有任何修复吗?我正在使用 Centos 64 位。需要 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,

...

谢谢!

4

1 回答 1

1

尝试:

sudo yum install libcurl-devel.i686
于 2014-02-01T19:01:00.820 回答