[thorne@auriga ~]$ cd mat_test [thorne@auriga ~/mat_test]$ setenv PATH ${PATH}:/sbin [thorne@auriga ~/mat_test]$ setenv DISPLAY :0.0 [thorne@auriga ~/mat_test]$ /usr/local/matlab-r2007b/bin/matlab -nodisplay < M A T L A B > Copyright 1984-2007 The MathWorks, Inc. Version 7.5.0.338 (R2007b) August 9, 2007 To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. >> getenv('ARCH') ans = glnx86 >> mcc -mv magicsquare.m Warning: Duplicate directory name: /usr/center/raid1/thorne/matlab. Warning: Duplicate directory name: /usr/center/raid1/local/matlab-r2007b/toolbox/local. Warning: Duplicate directory name: /usr/center/raid1/thorne/matlab. Compiler version: 4.7 (R2007b) Processing /usr/center/raid1/local/matlab-r2007b/toolbox/matlab/mcc.enc Processing include files... 2 item(s) added. Processing directories installed with MCR... The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 0 item(s) added. Generating MATLAB path for the compiled application... Created 35 path items. Begin validation of MEX files: Tue Jan 22 18:37:41 2008 Validating '/usr/center/raid1/local/matlab-r2007b/toolbox/compiler/deploy/deploywhich.mexglx'. No conflicting M-file found. Validating '/usr/center/raid1/local/matlab-r2007b/toolbox/compiler/deploy/readline.mexglx'. No conflicting M-file found. End validation of MEX files: Tue Jan 22 18:37:41 2008 Deleting 2 temporary MEX authorization files. Removing: '/tmp/fileV1lRcT_25760.auth'. Removing: '/tmp/filedppVCK_25760.auth'. Parsing file "/usr/center/raid1/thorne/mat_test/magicsquare.m" (Referenced from: "Compiler Command Line"). Parsing file "/usr/center/raid1/local/matlab-r2007b/toolbox/compiler/deploy/deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "/usr/center/raid1/local/matlab-r2007b/toolbox/compiler/deploy/printdlg.m" (Referenced from: "Compiler Command Line"). Generating file "magicsquare_main.c". Generating file "/usr/center/raid1/thorne/mat_test/run_magicsquare.sh". Generating file "/usr/center/raid1/thorne/mat_test/readme.txt". Generating file "magicsquare_mcc_component_data.c". Executing command: mbuild -O -v -output "magicsquare" "magicsquare_main.c" "magicsquare_mcc_component_data.c" -link exe ---------------------------------------------------------------- -> mbuildopts.sh sourced from directory (DIR = $HOME/.matlab/$REL_VERSION) FILE = /usr/center/raid1/thorne/.matlab/R2007b/mbuildopts.sh ---------------------------------------------------------------- -> TMW_ROOT = /usr/local/matlab-r2007b -> CC = gcc -> CC flags: CFLAGS = -ansi -D_GNU_SOURCE -fexceptions -D_FILE_OFFSET_BITS=64 -I/usr/local/matlab-r2007b/extern/include -DUNIX -DX11 -pthread CDEBUGFLAGS = -g COPTIMFLAGS = -O -DNDEBUG CLIBS = -Wl,-rpath-link,/usr/local/matlab-r2007b/bin/glnx86 -L/usr/local/matlab-r2007b/bin/glnx86 -lmwmclmcrrt -lm -lstdc++ arguments = -> LD = gcc -> Link flags: LDFLAGS = -pthread LDDEBUGFLAGS = -g LDOPTIMFLAGS = -O arguments = ---------------------------------------------------------------- -> gcc -c -ansi -D_GNU_SOURCE -fexceptions -D_FILE_OFFSET_BITS=64 -I/usr/local/matlab-r2007b/extern/include -DUNIX -DX11 -pthread -O -DNDEBUG magicsquare_main.c -> gcc -c -ansi -D_GNU_SOURCE -fexceptions -D_FILE_OFFSET_BITS=64 -I/usr/local/matlab-r2007b/extern/include -DUNIX -DX11 -pthread -O -DNDEBUG magicsquare_mcc_component_data.c -> gcc -O -pthread -o magicsquare magicsquare_main.o magicsquare_mcc_component_data.o -Wl,-rpath-link,/usr/local/matlab-r2007b/bin/glnx86 -L/usr/local/matlab-r2007b/bin/glnx86 -lmwmclmcrrt -lm -lstdc++ >>