-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: '::hypot' has not been declared when compiling with MingGW64 #4926
Comments
Give your full error. Even if similar, it could give us useful information. thanks On Wed, Aug 31, 2016 at 10:00 PM, Andy Jiang notifications@github.com
|
`Problem occurred during compilation with the command line below: Traceback (most recent call last): |
Search in Theano mailing list and issues. I already saw this. From memory, it could be mixed compiler in your environment. On Fri, Sep 2, 2016 at 2:52 AM, Andy Jiang notifications@github.com wrote:
|
No news, so closing as I think it is a user installation problem. |
No its not. I have the same problem. 01060 File "", line 1, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano__init__.py", line 70, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\compile__init__.py", line 10, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 21, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\compile\mode.py", line 10, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\gof\vm.py", line 659, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\gof\lazylinker_c.py", line 127, in File "C:\Users\EJ3D053N\AppData\Local\Continuum\Anaconda2\lib\site-packages\theano\gof\cmodule.py", line 2301, in compile_str . ^~~~~;mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/cmath:1133:11: error: '::hypot' has not been declaredxt\mod.cpp:1:++/math.h:36:0, |
Can you try with the mingw available through Anaconda, rather than the one you installed, which might be too recent? |
Sorry but my error disappeared since i rebooted my PC ! |
I have the same problem when I compile my code, and I've tried different version of mingw already, but it still didn't work. After read the post http://stackoverflow.com/questions/10660524/error-building-boost-1-49-0-with-gcc-4-7-0/12124708#12124708, I almost know why there's a problem, but i don't know how to solve it. how to add "-D_hypot=hypot" to the cxxflags in ccompile? I really need help.Thank you so much. @davikrehalt |
You can use the Theano flags gcc.cxxflags. Gice it the value you want to
pass to the compiler.
…On Wed, Feb 22, 2017 at 9:51 AM axiqia ***@***.***> wrote:
I have the same problem when I compile my code, and I've tried different
version of mingw already, but it still didn't work. After read the post
http://stackoverflow.com/questions/10660524/error-building-boost-1-49-0-with-gcc-4-7-0/12124708#12124708,
I almost know why there's a problem, but i don't know how to solve it. how
to add "-D_hypot=hypot" to the cxxflags in ccompile? I really need
help.Thank you so much. @davikrehalt <https://github.com/davikrehalt>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4926 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AALC-9-c7AHhXKK-YwCsheslSFw2CyY7ks5rfEtrgaJpZM4JyPal>
.
|
Thank you! I use mingw available through Anaconda. |
Thank you! This saved my day! Got the exactly same problem with Theano 1.0.2 and MingW64. Solved by adding THEANO_FLAGS='gcc.cxxflags="-D_hypot=hypot"' to the environment variables. |
Attempt at fixing tudat-team/tudatpy-feedstock#3 according to Theano/Theano#4926
Basically the error I get is very similar to this: http://stackoverflow.com/questions/10660524/error-building-boost-1-49-0-with-gcc-4-7-0/12124708#12124708
I've fixed it with adding "-D_hypot=hypot" to the cxxflags in ccompile. I'm wondering if you think a similar fix should be included in the theano code, to check for this possibility.
The text was updated successfully, but these errors were encountered: