Why am I having problems with my ANSI C Compiler on HP?
Show older comments
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
More Answers (0)
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!