Skip to content
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

runtime error "attempt to execute script as a function" on windows 7 #3

Open
coldfog opened this issue Jan 6, 2016 · 0 comments
Open

Comments

@coldfog
Copy link

coldfog commented Jan 6, 2016

I compiled kdtree_build.cpp with matlab 2013a on windows 7. The command I use is mex kdtree_build.cpp. However, when I execute kdtree_build(p), I got a runtime error "attempt to execute script as a function".

I found this is caused by the duplicated name of kdtree_build.m and kdtree_build.mex64. When I trying to invoke function kdtree_build, matlab actually invoke file kdtree_build.m instead of kdtree_build.mex64. If I rename kdtree_build.m to other name, it works fine.

So how can I associate the binary file kdtree_build.mex64 with comment filekdtree_build.m?

OS: windows 7
matlab: 2013a
kdtree version: 1.2

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

1 participant