Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

loadLibrary and .dll problem

loadLibrary and .dll problem

loadLibrary and .dll problem

I am having a problem with the compiler and an outside .dll library. A program I wrote to simply open the library and then close it works fine in matlab but when I compile the program I get errors that lead to it force closing, specifically with the loadlibrary function call. The resulting explanation is:

 ??? Error using ==> loadlibrary at 474
There was an error loading the library "C:\Program Files\MATLAB\R2009a\DVImgAccess_110207\dv_img_io.dll" Undefined function or variable 'dv_img_io_proto'.

Error in ==> DVImgLibOpen at 12

Error in ==>DVLibTest at 3

Caused by:
Error using ==> feval
Undefined function or variable 'dv_img_io_proto'.
MATLAB: UndefinedFunction

DVLibTest is the program that opens and closes the library. DVImgLibOpen is the function call that opens the library. Its code looks like this:
function [] = DVImgLibOpen(ListFunctions)

LibPath = dvimgroot();
if tf ==1
   SharedPath = fullfile(LibPath, [DVImgLibName '.dll']);
   SharedPath = fullfile(LibPath, [DVImgLibName '.so']);
HeaderPath = fullfile(LibPath, [DVImgLibName '.h']);


if ListFunctions ~= 0
    libfunctions (DVImgLibName) -full

Any help?


RE: loadLibrary and .dll problem

May be a bit late but is dv_img_io_proto defined in DVImgLibOpen?

RE: loadLibrary and .dll problem

where is dv_img_io_proto defined? in DVLibTest?
Post DVLibTest if you haven't figured it out yet

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close