Dear Arvind,
In mex.h, mwSize and mwIndex are defined by
typedef int mwSize;
typedef int mwIndex;
for 32-bits machines and
typedef size_t mwSize;
typedef size_t mwIndex;
for 64-bits ones.
You can add one of the two pairs of definitions at the begining of
gfm_common.c
and see if it fixes the problem.
Yves.
On lundi 20 septembre 2010, Arvind Ajoy wrote:
Dear Users,
I have been using getfem happily for the last year and a half on my
PC. I run Debian 5.0 + Matlab 7.4 on this system.
I intend to use getfem on a computer with better resources.
Unfortunately, this machine has only Matlab7.1 installed on it. I do
not have permission to change the version of Matlab on this system.
Using gcc-4.1.2 and Matlab 7.1.0.183 (R14), with the following
./configure --prefix=/sfs1/phd/ee06d006/tools/getfem-4.0.0
--enable-matlab --enable-shared --with-pic
I get the following error when compiling getfem-matlab on this system ...
mex -largeArrayDims -output gf_matlab -g CDEBUGFLAGS="-O3" LD="g++" \
-I. -I./.. -DMATLAB_RELEASE=14 \
./gfm_mex.c ./gfm_common.c ./../gfi_array.c \
../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a -lblas
-llapack || (rm gf_matlab.mexa64; false)
./gfm_common.c: In function ?mxarray_to_gfi_array?:
./gfm_common.c:66: error: ?mwSize? undeclared (first use in this function)
./gfm_common.c:66: error: (Each undeclared identifier is reported only once
./gfm_common.c:66: error: for each function it appears in.)
./gfm_common.c:66: error: expected ?;? before ?n2?
./gfm_common.c:67: error: ?n2? undeclared (first use in this function)
./gfm_common.c:72: error: expected ?;? before ?i?
./gfm_common.c:76: error: ?i? undeclared (first use in this function)
./gfm_common.c:134: error: ?mwIndex? undeclared (first use in this
function) ./gfm_common.c:134: error: ?ptr2? undeclared (first use in this
function) ./gfm_common.c:213: error: ?pm? undeclared (first use in this
function) ./gfm_common.c:217: error: expected expression before ?)? token
./gfm_common.c: In function ?gfi_array_to_mxarray?:
./gfm_common.c:238: error: ?mwSize? undeclared (first use in this function)
./gfm_common.c:238: error: expected ?;? before ?ndim2?
./gfm_common.c:243: error: ?ndim2? undeclared (first use in this function)
./gfm_common.c:244: error: ?dim2? undeclared (first use in this function)
./gfm_common.c:297: error: expected ?;? before ?j?
./gfm_common.c:300: error: ?j? undeclared (first use in this function)
./gfm_common.c:301: error: expected ?)? before ?mwSize?
./gfm_common.c:307: error: expected ?)? before ?mwSize?
./gfm_common.c:309: error: ?i2? undeclared (first use in this function)
./gfm_common.c:312: error: expected ?)? before ?mwSize?
./gfm_common.c:322: error: ?mwIndex? undeclared (first use in this
function) ./gfm_common.c:322: error: expected ?;? before ?d1?
./gfm_common.c:323: error: ?pr2? undeclared (first use in this function)
./gfm_common.c:325: error: ?d1? undeclared (first use in this function)
./gfm_common.c:326: error: ?d2? undeclared (first use in this function)
./gfm_common.c:327: error: ?nnz? undeclared (first use in this function)
mex: compile of './gfm_common.c' failed.
rm: cannot remove `gf_matlab.mexa64': No such file or directory
make[5]: *** [gf_matlab.mexa64] Error 1
make[5]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src/matlab'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src/matlab'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface/src' make[2]: ***
[all-recursive] Error 1
make[2]: Leaving directory
`/sfs1/phd/ee06d006/tools/getfem-4.0.0/interface' make[1]: ***
[all-recursive] Error 1
make[1]: Leaving directory `/sfs1/phd/ee06d006/tools/getfem-4.0.0'
make: *** [all] Error 2
I would be very happy if anyone has inputs on how I should proceed.
Regards
Arvind
_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users
--
Yves Renard (address@hidden) tel : (33) 04.72.43.87.08
Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29
20, rue Albert Einstein
69621 Villeurbanne Cedex, FRANCE
http://math.univ-lyon1.fr/~renard
---------