0
我正在看這個錯誤。我正在編譯ruby的體系結構是Solaris-i386。
這個ruby版本在我的另一個盒子ubuntu上編譯得很好。我在想,我正在使用錯誤的編譯器和/或不正確的選項?關於c89和c99標誌(-std = c99)提到了一些問題,有人可以詳細說明在執行./configure; make; make install
時應該如何使用這些標誌嗎?
我讀這個地方:它不會修復它,但我想爲可能包括在這個問題有用的信息
Solaris 8 requires #include <values.h> to get most of the system-dependent maths
values, and even then it doesn't have HUGE_VAL, despite this being referenced in the
math(3HEAD) man page.
By changing the reference to use MAXFLOAT instead and adding the #include above
math.h, the code compiles - whether it achieves the same end is an interesting question...