cmbeasy make error

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Peter S
Posts: 1
Joined: December 11 2007
Affiliation: University of Canterbury

cmbeasy make error

Post by Peter S » December 11 2007

Hi,
I am trying to install CMBEasy v4.3. When I run make from $CMBEASYDIR, I get the following error message (after quite a lot of other output):

.
.
.
analyze/LymanAlpha/PatMcDonald/mynrutils.h:28: warning: ‘NR::dsqrarg’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:32: warning: ‘NR::Maxarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:32: warning: ‘NR::Maxarg2’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:36: warning: ‘NR::Minarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:36: warning: ‘NR::Minarg2’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:40: warning: ‘NR::IMinarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:40: warning: ‘NR::IMinarg2’ defined but not used
g++ -c -Imathobject -Ianisotropy -Icosmos -Igui -I/usr/share/cmbeasy/gsl-1.6/include -Ichain -Ianalyze/wmap3 -I/usr/share/cfitsio/include -Ianalyze/LymanAlpha/PatMcDonald -Ianalyze/sdss/sdss_lrg -Ianalyze/cbi2 -Wall -DQT_THREAD_SUPPORT -DPRERELEASE -O2 -fno-unit-at-a-time analyze/LymanAlpha/PatMcDonald/LyaFchi2Interpolator.cc -o analyze/LymanAlpha/PatMcDonald/LyaFchi2Interpolator.o
analyze/LymanAlpha/PatMcDonald/LyaFchi2Interpolator.h:12: error: previous declaration of ‘const double LyaFchi2Interpolator::lkcent’ with ‘C++’ linkage
analyze/LymanAlpha/PatMcDonald/LyaFchi2Interpolator.cc:14: error: conflicts with new declaration with ‘C’ linkage
analyze/LymanAlpha/PatMcDonald/mynrutils.h:28: warning: ‘NR::dsqrarg’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:32: warning: ‘NR::Maxarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:32: warning: ‘NR::Maxarg2’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:36: warning: ‘NR::Minarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:36: warning: ‘NR::Minarg2’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:40: warning: ‘NR::IMinarg1’ defined but not used
analyze/LymanAlpha/PatMcDonald/mynrutils.h:40: warning: ‘NR::IMinarg2’ defined but not used
make: *** [analyze/LymanAlpha/PatMcDonald/LyaFchi2Interpolator.o] Error 1


The warning about mynrutils appears a lot, but its the C++/C linkage bit that stops gcc.

Any suggestions appreciated.
Peter Smale

Georg Robbers
Posts: 5
Joined: May 23 2006
Affiliation: University of Heidelberg

cmbeasy make error

Post by Georg Robbers » December 12 2007

The "extern C" bit in line 7 of the file LyaFchi2Interpolator.cc should be commented out:

Index: LyaFchi2Interpolator.cc
===================================================================
--- LyaFchi2Interpolator.cc
+++ LyaFchi2Interpolator.cc
@@ -4,8 +4,8 @@
#include "mynrutils.h"
#include "controlpanel.h"

+/*
extern "C"
-/*
{
void coordssave_ (double *coords);
}

Post Reply