jaeandersson / swig

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
http://www.swig.org
Other
23 stars 19 forks source link

Some question about how to run #90

Closed hengjiUSTC closed 7 years ago

hengjiUSTC commented 7 years ago

Hi I am quiet new to this and I try to run example/matlab/simple.
first i run swig -matlab example.i and at matlab I run \: mex example.c example_wrap.cxx but I still can't run runme.m Can you give me some advice on how to use it?

kdheepak commented 6 years ago

Were you able to figure this out? Can you share how you went about doing this?

kdheepak commented 6 years ago

@jaeandersson any advice on how to run this. There's no documentation as far as I can tell. I'm able to do the following.

>> mex example_wrap.cxx example.c
Building with 'Xcode Clang++'.
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]

MEX completed successfully.

However, I'm not able to run runme.m, since there is no swigexampleMEX function.

kdheepak commented 6 years ago

Okay it looks like SWIG is not generating the right names (?). On renaming the function name, this example seems to work.