Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Qt5 has an error & # 039 *

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what to do if acosh' is not a member of std' when there is an error in Qt5". In daily operation, I believe that many people have doubts about what to do when there is an error in Qt5, "acosh' is not a member of std'". The editor consulted all kinds of information and sorted out a simple and easy-to-use method of operation, hoping to help you answer the question that "Qt5 has an error." acosh' is not a member of std'. Next, please follow the editor to study!

Error: jsruntime/qv4mathobject.cpp:152:26: error: 'acosh' is not a member of' std'

Jsruntime/qv4mathobject.cpp:152:26: error: 'asinh' is not a member of' std'

Jsruntime/qv4mathobject.cpp:152:26: error: 'atanh' is not a member of' std'

……

The main problem is that the GCC version is too low and the support for the standard is incomplete. The solution is:

Open qt-everywhere-src-5.13.0/qtdeclarative/src/qml/jsruntime/qv4mathobject.cpp

Modify line 149 here:

# ifdef Q_OS_ANDROID / / incomplete std:-(

RETURN_RESULT (Encode (std::log (v + std::sqrt (v + 1) * std::sqrt (v-1)

# else

RETURN_RESULT (Encode (std::acosh (v)

# endif

Change to

RETURN_RESULT (Encode (std::log (v + std::sqrt (v + 1) * std::sqrt (v-1)

The whole file, and so on, all macros are taken

# ifdef Q_OS_ANDROID / / incomplete std:-(

And

# else

In between

Then, delete line 368:

# if! defined (_ _ ANDROID__) using std::log1p; # endif

At this point, the study of "what to do if acosh' is not a member of Qt5" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report