Hi Esther,
There are a few issues with the DiscreteOpt code base which cause
compilation to fail when a stricter compiler is used.
Try adding "using namespace DISCRETEOPT;" to the following files
(after the #include statements):
- DiscreteGroupModel.h
- DiscreteGroupModel.cpp
- DiscreteGroupCostFunctions.h
- DiscreteGroupCostFunctions.cpp
Cheers,
Paul
On 22/07/2019, Esther Warnert <[log in to unmask]> wrote:
> Hello,
>
> I am trying to build FSL v6.0.1. from source on an OpenSuse 13.1 Linux
> system.
>
> Although most of the packages are successfully build, the build.log shows
> the following summary:
>
> !!ERROR in BUILD!!
> Could not make the following projects successfully:
> DiscreteOpt FastPDlib MSMRegLib MSM mist-clean
>
>
> From the rest of the error log it looks like the failed builds for
> DiscreteOpt FastPDlib MSMRegLib MSM are linked. The first error in the
> build.log is indeed at DiscreteOpt, and I can not get this one right. I am
> using c++ (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388].
>
> Hopefully someone can help!
>
> Below is the initial error for DiscreteOpt:
>
>
> /bin/rm -f /tmp/fslgrot *.o *.a *.exe core depend.mk
> /bin/rm -f /tmp/fslgrot
> /home/esther/fslbuild-6-0-1/fsl/config/common/rules.mk:320: depend.mk: No
> such file or directory
> Building dependency file depend.mk
> c++ -Wall -ansi -pedantic -Wno-long-long -g -DNDEBUG -m64 -g -O3
> -fexpensive-optimizations -m64
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/boost
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/armawrap/armawrap
> -DARMA_USE_LAPACK -DARMA_USE_BLAS -DARMA_64BIT_WORD
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/newran -I/usr/include
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/libcprob
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/libprob
> -I/home/esther/fslbuild-6-0-1/fsl/extras/include/boost
> -I/home/esther/fsldev/include -I/home/esther/fsldev/extras/include -I.
> -I/home/esther/fslbuild-6-0-1/fsl/include
> -I/home/esther/fslbuild-6-0-1/fsl/include -c -o
> DiscreteGroupCostFunction.o DiscreteGroupCostFunction.cpp
> In file included from DiscreteGroupCostFunction.cpp:68:0:
> DiscreteGroupCostFunction.h:83:1: error: expected class-name before ‘{’
> token
> {
> ^
> In file included from DiscreteGroupCostFunction.cpp:68:0:
> DiscreteGroupCostFunction.h: In member function ‘void
> DISCRETEOPTHOCR::GroupDiscreteCostFunction::set_meshes(const
> NEWMESH::newmesh&, const NEWMESH::newmesh&, const NEWMESH::newmesh&, int)’:
> DiscreteGroupCostFunction.h:99:7: error: ‘_ORIG’ was not declared in this
> scope
> _ORIG=source;
> ^
>
>
>
>
> Thank you for your help!
>
> Best,
> Esther
>
> ########################################################################
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
>
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|