AIX上使用gcc和g++的一个编译问题的解决

编译时出现以下错误:

/tmp//ccoVFPzP.s: line 85771: Only .llong should be used for relocatable expressions.

/tmp//ccoVFPzP.s: line 85802: Only .llong should be used for relocatable expressions.
/tmp//ccoVFPzP.s: line 85853: Only .llong should be used for relocatable expressions.
/tmp//ccoVFPzP.s: line 85898: Only .llong should be used for relocatable expressions.
/tmp//ccoVFPzP.s: line 85935: Only .llong should be used for relocatable expressions.
/tmp//ccoVFPzP.s: line 85973: Only .llong should be used for relocatable expressions.
/tmp//ccoVFPzP.s: line 86011: Only .llong should be used for relocatable expressions.

/tmp//ccoVFPzP.s: line 86072: Only .llong should be used for relocatable expressions.

经查资料得知,编译时需要增加编译选项 -maix64

你可能感兴趣的:(C++学习笔记)