Tuesday, March 9, 2010

Notes on compiling mex file without gcc version warning

http://www.mathworks.com/access/helpdesk_r13/help/techdoc/matlab_prog/ch7_pe30.html#784594


Changed mexopts.sh as (Matlab2009b/bim/mexopts.sh is changed use mex -setup to select that conf as the default after the changes)

glnx86)
#----------------------------------------------------------------------------
RPATH="-Wl,-rpath-link,$TMW_ROOT/bin/$Arch"
# StorageVersion: 1.0
# CkeyName: GNU C
# CkeyManufacturer: GNU
# CkeyLanguage: C
# CkeyVersion:

#CC='gcc'
CC='gcc-4.1'

#CFLAGS='-ansi -D_GNU_SOURCE'
#Srimal: we allow // style comments due to opencv .h files
CFLAGS='-D_GNU_SOURCE'

No comments: