How to call call a MATLAB shared library from another shared library

How to call call a MATLAB shared library from another shared library

Post by srikant » Thu, 10 Apr 2008 18:28:02


I have some Matlab generated dlls, now i want to call
functions which are in those dlls from my class library.
The library initializations are not being done from the
library. How can i access those functions from a dll.

Thank you in advance...


1. Calling a function from ALL loaded shared object (libraries) (or getting list of all loaded library)

2. Calling a function from all loaded shared object (libraries) (or getting list of all loaded library)


I have several shared objects (.so), and all of them do have some
function with the same name and the same semantics (eg helloWorld).

I also have the main binary, which has the same function, and which is
linked against some of the shared libraries mentioned above.

I need to call each of the functions from the main binary (including
the helloWorld from the main module itself)

I need generic algorithm, cause I do not want to have hardcoded names
of the so linked with the specific main binary.

I do understand, that except my module there are some standard unix
libraries which do not have the specific function (eg

How can I implement this?

Just to be clear: void helloWorld() { printf("Hello from libA"); } void helloWorld() { printf("Hello from libB"); }
main: void helloWorld() { printf("Hello from main"); }

and when I start main, I receive (order is not significant):
hello from main
hello from libB
hello from libA

Thank you in advance

3. Call Library Function Node: Instantiate a class/handle constructors in a C++ Shared Library?

4. JNI Shared Native Object calling non-shared native library functions?

5. How do I call a MATLAB Compiler generated shared library from a C# application?

6. shared library - why 3 files are needed for a shared library. ?

7. Extracting routines from shared libraries (was Exreacting routines from shared libraries)

8. Problem with linking C shared library into C++ shared library

9. [Simulink, S-functions] Calling Lapack++ library from a library called by a S-function

10. C Shared Library Example:: Libraries (MATLAB Compiler)

11. calling matlab code in labview 5 using call library function

12. system call, library call, booty call, whatever.

13. how to build a shared library (dll) of a VI to be called by VC++

14. How to call a function from a shared library ?

15. calling between C++ and Shared Libraries built with .NET