问题:error:从‘void*’到‘int’的转换损失精度
原因:64位系统上的void*占8字节,转换为int为4字节将会损失精度。
解决:可以在编译时加上-m32选项让编译器以32位应用程序编译。
参考:
http://blog.csdn.net/sky_qing/article/details/11650497
http://blog.csdn.net/chaoyue1216/article/details/6860034
问题:/usr/include/gnu/stubs.h:7:27: error:gnu/stubs-32.h:No such file or directory
针对 the RHEL/CentOS 5.x
yum -y install glibc-devel.i386
针对 the RHEL/CentOS 6.x
yum -y install glibc-devel.i686 glibc-devel