Skip to content

running error #2

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

Open
Victoria2333 opened this issue Apr 8, 2017 · 1 comment
Open

running error #2

Victoria2333 opened this issue Apr 8, 2017 · 1 comment

Comments

@Victoria2333
Copy link

I use Matlab2015b,windows10 and Visual Studio 2013,still have some unsolved problem.Please help me...
Error using mex
resize.cpp
C:\Users\a\Desktop\dpm-master-windows\resize.cpp(11) : error C2556: 'int round(float)' : overloaded function differs only by return type from
'float round(float) throw()'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(1125) : see declaration of 'round'
C:\Users\a\Desktop\dpm-master-windows\resize.cpp(11) : error C2371: 'round' : redefinition; different basic types
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(1125) : see declaration of 'round'

@Assassintears
Copy link

Assassintears commented Oct 10, 2017

@Victoria2333
I encountered the same problem as you. You can comment the definition of function round in Matlab. In fact, the function round definition is as same as math.h's, when you comment the function round definition in Matlab, it will call the round defined in math.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants