Skip to content

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

@coldfog

Description

@coldfog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions