Qt 4.8, Visual Studio 2013 compiling error

后端 未结 6 1389
忘了有多久
忘了有多久 2021-02-06 02:43

Am folowing this tutorial to compile Qt 4.8 with visual Studio 2013 but after running nmake i get:

C:\\Qt\\4.8.5.src\\src\\3rdparty\\javascriptcore\\JavaScriptCo         


        
6条回答
  •  星月不相逢
    2021-02-06 03:44

    To fix 'round' and 'roundf' errors replace (lines 103 and 110):

    static double round(double num)
    static float roundf(float num)
    

    with:

    static inline double round(double num)
    static inline float roundf(float num)
    

    To fix 'signbit' error enclose it with following macro (line 128):

    #if _MSC_VER < 1800
    inline bool signbit(double num) { return _copysign(1.0, num) < 0; }
    #endif
    

提交回复
热议问题