在编译过工程中  出现 “ **/**/**/ (具体文件名)  error: 'std::_hypot' has not been declared  using std::hypot;  ”  的错误

      解决办法: 在具体文件名  中  的文件头    加入 #define _hypot hypot

 我的报错时C:\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++\math.h   出现这样的错误。

 

 如果在编译时 ,遇到其他文件,比如“cmath”同样也是在文件头加上 #define _hypot hypot。可以尝试,我是通过这个方法解决问题的。 参考:https://blog.csdn.net/weixin_37993251/article/details/88054384

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐