CMDLINE2: xcrun -sdk macosx10.11 clang -Wl,-twolevelnamespace -undefined error -mmacosx-version-min=10.11 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -bundle -Wl,-exportedsymbolslist, '/Applications/MATLABR2016a.app/extern/lib/maci64/fexport.map' -O /var/folders/sb/nn380qyj7js3bqzqc2lsqkyccr014t/T/mex/HausMex.o -L '/Applications/MATLABR2016a.app/bin/maci64' -lmx -lmex -lmat -L '/usr/local/gfortran/lib' -lgfortran -L '/usr/local/gfortran/lib/gcc/x8664-apple-darwin14/5.2.0' -lgfortranbegin -o HausMex.mexmaci64. Xcrun -sdk macosx10.11 clang -Wl,-twolevelnamespace -undefined error -mmacosx-version-min=10.11 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -bundle -Wl,-exportedsymbolslist, '/Applications/MATLABR2016a.app/extern/lib/maci64/fexport.map' -O /var/folders/sb/nn380qyj7js3bqzqc2lsqkyccr014t/T/mex/HausMex.o -L '/Applications/MATLABR2016a.app/bin/maci64' -lmx -lmex -lmat -L '/usr/local/gfortran/lib' -lgfortran -L '/usr/local/gfortran/lib/gcc/x8664-apple-darwin14/5.2.0' -lgfortranbegin -o HausMex.mexmaci64. Seems to indicate that prout is an INTEGER(4) type and you passed it by value to a routine that is expecting a REAL(8). What is the interface for the Hausdorff routine? Explicit or implicit?
What does the argument signature look like in the Hausdorff routine? It looks like you are running 64-bit MATLAB based on the maci64 extension, but by letting mex select the -compatibleArrayDims option that may have resulted in prout being an INTEGER(4) type.
Making Decisions. So far, our programs have worked as little more than basic calculators. The power of programming comes in when we have to make decisions. Copy the example program, test.f95, to your own file space. See if you can understand what is going on. I am attempting to port several large legacy Fortran apps to Mac OS X. The applications are perhaps 95% Fortran 77 with a few low level ANSI C functions. The Mac is running Panther 10.3.8 with X11 installed and with Xcode 1.5 (gcc 3.3) installed. 9.102 EXP — Exponential function Description: EXP(X) computes the base e exponential of X. Standard: Fortran 77 and later, has overloads that are GNU extensions Class: Elemental function Syntax: RESULT = EXP(X) Arguments.
Not large enough to hold a 64-bit address and maybe the cause of the warning (which would eventually lead to a fatal runtime error). So I would suggest you try to force the prout to be INTEGER(8) by using the -largeArrayDims option. (Can't tell for sure if this will fix things without seeing your code and how prout is defined).