Dynamic and Shared Libraries
Show older comments
Hello everyone,
I have a .dll file that i have downloaded from the internet. This file has been reported as a dependancy by the walker software. I am trying to include it in my MEX command. However i get an error while compiling. I have saved the .dll file to the same folder from where i run the make file which contains the mex command.
How do i sort it out?
mex msvcr7.lib
LINK : fatal error LNK1181: cannot open input file 'msvcr7.lib'
6 Comments
Geoff Hayes
on 10 Apr 2019
VInayak - please clarify if you have a dll or a static library. Your code suggests that you have a lib but you indicate that you have a dll. Which is it?
VINAYAK KARANDIKAR
on 10 Apr 2019
Geoff Hayes
on 10 Apr 2019
From mex filenames input param, For linking dynamic libraries, use the -llibname option. Have you tried to do this?
VINAYAK KARANDIKAR
on 10 Apr 2019
Walter Roberson
on 10 Apr 2019
-lmsvcr7
Ignore the API-MS entries.
VINAYAK KARANDIKAR
on 10 Apr 2019
Answers (0)
Categories
Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!