我正在尝试使用以下配置在2台计算机上构建相同的代码:
// Example program
#include <iostream>
#include <string>
for (int ctr = 0; ctr < 256; ctr++)
{
for (i; i < 512; i += 32)
{
for (int j = 0; j < 512; j += 32)
{
std::cout << "Count: " << ctr << i << "," << j << std::endl;
}
}
}
return 0
,RHEL 5.8
,gcc 4.3.2
libc 2.5
,RHEL 6.4
,gcc 4.3.2
在第二台机器(具有较新的配置)的简单线路上,如:
libc 2.12
运行以下命令:
#include <string>
我遇到了构建错误:
/opt/.../bin/c++ -Dmy_packet_EXPORTS -fPIC -Wall \
-Wnon-virtual-dtor -Wpointer-arith -Wcast-qual -Wcast-align \
-mtune=generic -fstrict-aliasing -g -O1 -I/dev2/build/my_packet/include \
-I/dev2/source/my_packet/include -I/dev2/source/my_packet/src \
-o CMakeFiles/my_packet.dir/version.cpp.o \
-c /dev2/source/my_packet/src/my_packet/version.cpp
任何人都知道错误是什么以及如何解决它? 感谢