尚未声明':: hypot' [英] '::hypot' has not been declared

查看:73
本文介绍了尚未声明':: hypot'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用python3.6 theano, 安装了mingw-w64-x86-64,我的操作系统是Win10_64,安装了cuda, 似乎一切都很好

I'm using python3.6 theano, with mingw-w64-x86-64 installed, my os is Win10_64, cuda installed, and seems everything is ok

theano.test()没问题,说我的GPU正在工作,

the theano.test() is ok, saying my gpu is working,

但它总是告诉我错误:':: hypot'尚未声明"

but it just keeps tell me that "error: '::hypot' has not been declared"

 C:/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/cmath:1157:11: error: '::hypot' has 
 not been declared\r.    using ::hypot;\r.            ^~~~~\r. ", 

任何帮助将不胜感激!

推荐答案

我在使用mingw32构建python文件时遇到此错误. 我打开了它说的文件(C:/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c ++/cmath:1157:11)
并将该行更改为

I had this error with building an python file using mingw32 . I opened the file that it says (C:/mingw64/lib/gcc/x86_64-w64-mingw32/6.3.0/include/c++/cmath:1157:11)
and changed that line to

using ::_hypot;

或在此之前添加此行:

#define hypot _hypot

然后问题解决了! 我知道这不是一个基本的解决方案,但是我可以找到它!!

and after that the problem was solved !! I know it's not a basic solution but it is the one that I could find !!

这篇关于尚未声明':: hypot'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆