Mex problem, can't find the .exp file

2 views (last 30 days)
WENJIE wu
WENJIE wu on 4 Jan 2016
Commented: WENJIE wu on 4 Jan 2016
I'm trying to generate C code using Matlab Coder, and test the generated code with mexfunction. but some problem happened when I mex the .c file. I was using Matlab 2014a and the compiler was VS 2010. I type the command "mex a.c b.c c.c -output c.mexw64" in the command window to mex the .c file. and it displays the operation has been successful, but it also display can't find the c.exp file. So I want to know what's the .exp file? has anyone encountered the problem and how to solve it?

Answers (1)

Walter Roberson
Walter Roberson on 4 Jan 2016
.exp files are created when you have an export from a library, and contain symbol tables so that other code can link against the library, especially in the context of multiple libraries that might refer to each other.
  1 Comment
WENJIE wu
WENJIE wu on 4 Jan 2016
Thank you, Walter! Is there anyway I can generate the .exp file manually?

Sign in to comment.

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!