Hi, Carl,
I'm compiling mca in base-3.14.7, the operating
system is RedHat Linux WS4(kernel is 2.6.9-22),
the host-arch linux-x86 and target-arch is linux-x86,
GCC 3.4.4, GNU Make 3.80, matlab 6.5, when I make according
to the "README" file , there are some error like the
following:
[epics@localhost mca]$ make mex -v
-I/home/epics/epics3.14.7/base-3.14.7/include -I/home/epics/epics3.14.7/b
ase-3.14.7/include/os/Linux -DEPICS_DLL_NO -L/home/epics/epics3.14.7/base-3.14.7
/lib/linux-x86 -ldbStaticHost -lCom -lca mca.cpp MCAError.cpp Channel.cpp Channe
lAccess.cpp -o O.linux-x86/mca.mexglx -> mexopts.sh sourced from directory
(DIR = .) FILE =
/home/epics/epics3.14.7/extensions/src/mca/mexopts.sh ---------------------------------------------------------------- ->
MATLAB
= /home/epics/matlab ->
CC
= gcc -> CC
flags:
CFLAGS =
-fPIC -ansi -D_GNU_SOURCE -pthread
-DGCC
CDEBUGFLAGS =
-g
COPTIMFLAGS = -O
-DNDEBUG
CLIBS
= -Wl,--rpath-link,/home/epics/matlab/extern/lib/gln
x86,--rpath-link,/home/epics/matlab/bin/glnx86 -L/home/epics/matlab/bin/glnx86 -
lmx -lmex -lmat -lm -lm
arguments =
-DEPICS_DLL_NO ->
CXX
= gcc -> CXX
flags:
CXXFLAGS = -fPIC
-ansi -D_GNU_SOURCE -DGCC -pthread -I$EPICS_ BASE/include
-I$EPICS_BASE/include/os/Linux
CXXDEBUGFLAGS =
-g
CXXOPTIMFLAGS = -O
-DNDEBUG
CXXLIBS =
-Wl,--rpath-link,/home/epics/matlab/extern/lib/gln
x86,--rpath-link,/home/epics/matlab/bin/glnx86 -L/home/epics/matlab/bin/glnx86 -
lmx -lmex -lmat -lm -L/ade/epics/supTop/base/R3.14.2/lib/linux-x86 -lca -lCom -l
readline -lcurses -losp -lrt
-lm
arguments =
-DEPICS_DLL_NO ->
FC
= -> FC
flags:
FFLAGS
=
FDEBUGFLAGS
=
FOPTIMFLAGS
=
FLIBS
=
arguments =
-DEPICS_DLL_NO ->
LD
= gcc -> Link
flags:
LDFLAGS =
-pthread -shared -Wl,--version-script,/home/epics/
matlab/extern/lib/glnx86/mexFunction.map
LDDEBUGFLAGS =
-g
LDOPTIMFLAGS =
-O
LDEXTENSION =
.mexglx
arguments =
-L/home/epics/epics3.14.7/base-3.14.7/lib/linux-x 86 -ldbStaticHost -lCom
-lca ->
LDCXX
= -> Link
flags:
LDCXXFLAGS
=
LDCXXDEBUGFLAGS
=
LDCXXOPTIMFLAGS
=
LDCXXEXTENSION
=
arguments =
-L/home/epics/epics3.14.7/base-3.14.7/lib/linux-x 86 -ldbStaticHost -lCom
-lca ----------------------------------------------------------------
-> gcc -c
-I/home/epics/epics3.14.7/base-3.14.7/include -I/home/epics/epics3.14
.7/base-3.14.7/include/os/Linux -I/home/epics/matlab/extern/include -DMATLAB_MEX
_FILE -fPIC -ansi -D_GNU_SOURCE -DGCC -pthread -I$EPICS_BASE/include -I$EPICS_BA
SE/include/os/Linux -DEPICS_DLL_NO -O -DNDEBUG mca.cpp
In file included from mca.cpp:23: queue.h: In member
function `Node<T>* Node<T>::GetPrev() const': queue.h:84: error:
`Prev' undeclared (first use this function) queue.h:84: error: (Each
undeclared identifier is reported only once for each fu nction it appears
in.) queue.h: In member function `int Queue<T>::Size()
const': queue.h:123: error: there are no arguments to `Empty' that depend on
a template parameter, so a declaration of `Empty' must be
available queue.h:123: error: (if you use `-fpermissive', G++ will accept
your code, but a llowing the use of an undeclared name is
deprecated) queue.h:129: error: `count' undeclared (first use this
function)
mex: compile of 'mca.cpp'
failed.
make: *** [O.linux-x86/mca.mexglx] Error 1
Could you help me find the reason? Thank you very
much!
Zhao Zhuo
Accelerator Control Group, Accelerator Research
Center Institute of High Energy Physics (IHEP) P.O. Box 918-10 Beijing,
100049 P.R. China
Tel: +86-10-88236268-11 or 88236269-11
(O)
|