Why am I unable to generate a C++ shared library using a Borland compiler and MATLAB Compiler 4.0 (R14)?
1 view (last 30 days)
Show older comments
I would like to generate a C++ shared library for use in my application. I can generate a shared library file, but when I try calling it, I receive an unresolved references error. Furthermore, if I compile the shared library using the verbose output flag, I receive warning messages such as:
Turbo Incremental Link 5.60 Copyright (c) 1997-2002 Borland
Warning: Attempt to export non-public symbol '_addmatrix'
Warning: Attempt to export non-public symbol '_multiplymatrix'
Warning: Attempt to export non-public symbol '_eigmatrix'
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This problem has been fixed in MATLAB Compiler 4.2 (R14SP2). If you are using a previous version, read the following:
We have verified that there is a bug in MATLAB Compiler 4.0 (R14) when using a Borland compiler to generate a C++ shared library.
To work around this issue, try generating a C shared library.
0 Comments
More Answers (0)
See Also
Categories
Find more on Call C++ from MATLAB 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!