[14147] in Athena Bugs
sun4 7.7U: cmex [matlab locker]
daemon@ATHENA.MIT.EDU (Albert Dvornik)
Wed Jan 31 10:44:30 1996
To: bugs@MIT.EDU
Date: Wed, 31 Jan 1996 10:44:21 EST
From: Albert Dvornik <bert@MIT.EDU>
System name: infocalypse
Type and version: SPARC/Classic 7.7U (2 update(s) to same version)
Display type: cgthree
What were you trying to do?
Compile a C file with an interface to Matlab.
What's wrong:
cmex (from Matlab 4.2) is misconfigured, so on Solaris you end up with
Undefined first referenced
symbol in file
mxGetPr mextest1.o
mxGetPi mextest1.o
mxFreeMatrix mextest1.o
main /mit/sunsoft/sunwspro/SC3.0.1/lib/crt1.o
mexCallMATLAB mextest1.o
mxCreateFull mextest1.o
What should have happened:
cmex initialization code should have set LDFLAGS to '-s -G'
instead of '-s'. (The way I figured out what was wrong is
because cmex41 gets it right.)
Please describe any relevant documentation references:
Ummmmm... cmex41/cmex42 code? =)