CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

cmbeasy make error
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Peter S



Joined: 11 Dec 2007
Posts: 1
Affiliation: University of Canterbury

PostPosted: December 11 2007  Reply with quote

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
Back to top
View user's profile  
Georg Robbers



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

PostPosted: December 12 2007  Reply with quote

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);
}
Back to top
View user's profile [ Hidden ]
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.