Hi Esther,
Oh - there another change you will need to make add these lines at the
beginning of DiscreteCostFunction.h:
#ifndef __DISCRETECOSTFUNCTION_H__
#define __DISCRETECOSTFUNCTION_H__
And this line at the end:
#endif
Cheers,
Paul
On 22/07/2019, Esther Warnert <[log in to unmask]> wrote:
> Hi Paul,
>
> Thank you for your quick reply!
>
> I added "using namespace DISCRETEOPT;" to the four files you mentioned and
> the first c++ call now runs, spitting out a couple of warnings only.
>
> However, the second c++ call runs into the following errors:
>
>
> 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 DiscreteGroupModel.o
> DiscreteGroupModel.cpp
> In file included from DiscreteModel.h:68:0,
> from DiscreteGroupModel.h:72,
> from DiscreteGroupModel.cpp:68:
> DiscreteCostFunction.h:80:9: error: redefinition of ‘class
> DISCRETEOPT::DiscreteCostFunction’
> class DiscreteCostFunction
> ^
> In file included from DiscreteGroupCostFunction.h:69:0,
> from DiscreteGroupModel.h:71,
> from DiscreteGroupModel.cpp:68:
> DiscreteCostFunction.h:80:9: error: previous definition of ‘class
> DISCRETEOPT::DiscreteCostFunction’
> class DiscreteCostFunction
> ^
>
>
> and this goes on for a while.
>
> Does that make sense?
>
> Thanks again!
>
> 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
|