MATLAB Answers

calllib issue... library not found...

52 views (last 30 days)
Chris E.
Chris E. on 26 Jan 2014
Commented: Chris E. on 27 Jan 2014
For some reason I have an error that says "Error using calllib Library was not found" yet I know it is in the MATLAB generals file, I even added the path manually to ensure my files are going there and it still can not find it. I was hoping to have some help if someone knows what the issue is, they would let me know what is up. Thanks!
Chris E.
Chris E. on 27 Jan 2014
Thanks I think that did it (somehow)... I'm using 64 but now it is not running into the same issue. thanks

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 26 Jan 2014
You are generating 32 bit libraries and trying to use them on a 64 bit MATLAB. Or the moon is still in the 6th house and Jupiter has not quite aligned with Mars. Take your pick; one is as good as another with the information you gave us.
  1 Comment
Chris E.
Chris E. on 27 Jan 2014
Thanks for letting me know, but the code was the example of MATLAB's calllib. it just is not working. I was seeing if someone else ran into this problem. Sorry if it was not enough info, but it was the simple example that MATLAB website gave. However Jupiter was not quite lined up with mars, so it could of been that.....

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 27 Jan 2014
Worked for me. Can you go here C:\Program Files\MATLAB\R2013a\extern\examples\shrlib and tell us what files you see? Change the version number if you need to, and change Program Files to Program Files (x86) if you have a 64 bit system but are running 32 bit MATLAB. You should see shrlibsample.mexw64, shrlibsample.c, and shrlibsample.h.


Community Treasure Hunt

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

Start Hunting!