Why am I having problems with my ANSI C Compiler on HP?

Why am I having problems with my ANSI C Compiler on HP?
I am trying to build the example called lorenz.m (from the manual) and run it in stand-alone mode. My workstation is a HP-C180, running HP-UX 10.20 and our MATLAB version is 6.1.0.450 Release 12.1
I have a C compiler installed (full version). I also have a C++ compiler, not the standard HP (aCC) but the one from Kai (KCC).
Here are the things I tried:
mbuild -setup % which copied some files to my $HOME/.matlab
mcc -B sgl lorenz.m
The error I am getting is as follows:
ERROR: /usr/tools/matlab/bin/mbuild[99]: aCC: not found.
Then I tried to use KCC by changing the mbuildopts.sh file. It generates an executable but complains of the following:
ERROR: Misconfigured: Cannot decipher "nm" output line:
nm: /usr/tools/matlab/extern/lib/hp700/libmwsgl.sl: no symbols
Misconfigured: Cannot decipher "nm" output line:
nm: /usr/tools/matlab/bin/hp700/libmwhg.sl: no symbols
[snip]
Here is the listing of these files:
-rwxr-xr-x 1 sashik users 78936 Jun 3 2001 libmwsgl.sl
-rwxr-xr-x 1 sashik users 1658108 Jun 3 2001 libmwsglm.sl
-rwxr-xr-x 1 sashik users 4366788 Jun 3 2001 libmmfile.sl
-rwxr-xr-x 1 sashik users 247579 Jun 3 2001 libmx.sl
-rwxr-xr-x 1 sashik users 1679390 Jun 3 2001 libmwhg.sl
-rwxr-xr-x 1 sashik users 791028 Jun 3 2001 libmatlb.sl
Finally, when I do run the 'lorenz' application I get:
ERROR: usr/lib/dld.sl: Unresolved symbol: __shlinit (code) from /usr/tools/matlab/bin/hp700/libmwudd.sl
Abort (core dumped)
Do I need a CC to do anything? Or do I have a version than cannot generate executables?

 Accepted Answer

The HP platform does not allow the MATLAB Compiler to use an ANSI C compiler to link against C++ libraries.
Please consider installing an ANSI C++ Compiler supported by the MATLAB Compiler instead. You can find a list of supported compilers at:
This limitation on the ANSI C Compiler is only on the HP platform. Our development staff is aware of the problem and is working on resolving the issue. However, there is no set date as to when a solution will be available.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!