开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
gcc on mac
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
在尝试用the c++ stl 2nd上面的范例
喂入的资料(Input):
预期的正确结果(Expected Output):
没有warning
已经会出现结果
错误结果(Wrong Output):
编译时会出现
g++ -std=c++11 -c tuple2.cpp
g++ -std=c++11 tuple2.o printtuple.hpp.gch -o tuple
ld: warning: ignoring file printtuple.hpp.gch, file was built for
unsupported file format ( 0x67 0x70 0x63 0x68 0x2B 0x30 0x31 0x34
0xB8 0x62 0x17 0x5B 0x21 0x3A 0xBC 0x15 ) which is not the
architecture being linked (x86_64): printtuple.hpp.gch
程式码(Code):(请善用置底文网页, 记得排版)
http://pastie.org/pastes/9933717 printtuple.hpp
http://pastie.org/9933732 tuple2.cpp
http://pastie.org/9933730#4 makefile
还在研究makefile..
补充说明(Supplement):
不知道这个warning是什么意思
想请教各位大大
感谢~