Thread Subject: Usage of C++ dll in MATLAB

Subject: Usage of C++ dll in MATLAB

From: Shanmugam Kannappan

Date: 19 Aug, 2009 12:23:19

Message: 1 of 3

Hi!

I am able to load the DLL with out any errors using loadlibrary function. But after loading when I call "libfunctions" to list out the functions of DLL, its showing
"No methods for class lib.LicenseHelper or no class lib.LicenseHelper."

Any idea about this behaviour.....

Thanks & Regards,
Shan.....

Subject: Usage of C++ dll in MATLAB

From: James Tursa

Date: 19 Aug, 2009 19:37:19

Message: 2 of 3

"Shanmugam Kannappan" <shanmugambe@gmail.com> wrote in message <h6gqrn$3n0$1@fred.mathworks.com>...
> Hi!
>
> I am able to load the DLL with out any errors using loadlibrary function. But after loading when I call "libfunctions" to list out the functions of DLL, its showing
> "No methods for class lib.LicenseHelper or no class lib.LicenseHelper."
>
> Any idea about this behaviour.....
>
> Thanks & Regards,
> Shan.....

What header file are you using for the DLL when you load it? Are the DLL functions written with extern "C"? Only C style interface functions are supported, not C++ style name decoration.

James Tursa

Subject: Usage of C++ dll in MATLAB

From: Shanmugam Kannappan

Date: 20 Aug, 2009 11:17:06

Message: 3 of 3

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h6hk9f$4vb$1@fred.mathworks.com>...
> "Shanmugam Kannappan" <shanmugambe@gmail.com> wrote in message <h6gqrn$3n0$1@fred.mathworks.com>...
> > Hi!
> >
> > I am able to load the DLL with out any errors using loadlibrary function. But after loading when I call "libfunctions" to list out the functions of DLL, its showing
> > "No methods for class lib.LicenseHelper or no class lib.LicenseHelper."
> >
> > Any idea about this behaviour.....
> >
> > Thanks & Regards,
> > Shan.....
>
> What header file are you using for the DLL when you load it? Are the DLL functions written with extern "C"? Only C style interface functions are supported, not C++ style name decoration.
>
> James Tursa
Hi James!
Thanks for the reply.
Yes, we have extern "C".
Let me know if you have any idea ...

Regards,
Shan...

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com