bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regarding compilation error.


From: Nisha G
Subject: Regarding compilation error.
Date: Wed, 28 Nov 2007 12:17:52 +0530

Dear Sir/Madam

When compiling with make I'm getting an error as below. I have also copied and pasted the makefile below the error generated.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
g++  -c -LANG:std -O3 NumericalWeather.cpp -I /home3/vym/Langs/Cpp/Classes/include -I /home3/vym/Langs/Cpp/Applications/NumericalWeather/Varsha++Modules/include -I /home3/vym/Langs/Cpp/Applications/Calendar -I /home3/vym/Langs/Cpp/Classes/Utils
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/strstream:51,
                 from positionMarker.h:33,
                 from NumericalWeather.cpp:36:
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h >. To disable this warning use -Wno-deprecated.
g++  -c -LANG:std -O3 nwAGCM.cpp -I /home3/vym/Langs/Cpp/Classes/include -I /home3/vym/Langs/Cpp/Applications/NumericalWeather/Varsha++Modules/include -I /home3/vym/Langs/Cpp/Applications/Calendar -I /home3/vym/Langs/Cpp/Classes/Utils
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/strstream:51,
                 from positionMarker.h:33,
                 from nwAGCM.cpp:29:
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h >. To disable this warning use -Wno-deprecated.
nwtArrayNode.h: In member function 'nwtArrayNode<tType>& nwtArrayNode<tType>::operator=(const nwtArrayNode<tType>&)':
nwtArrayNode.h:131: error: expected `;' before 'e'
nwtArrayNode.h:133: error: 'e' was not declared in this scope
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::CheckBounds(const int&) const':
nwtpArrayD1.h:419: error: expected `;' before 'e'
nwtpArrayD1.h:420: error: 'e' was not declared in this scope
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::CheckSliceRangeLength(const nwRange&) const':
nwtpArrayD1.h:438: error: expected `;' before 'e'
nwtpArrayD1.h:440: error: 'e' was not declared in this scope
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::CheckSubRange(const nwRange&) const':
nwtpArrayD1.h:462: error: expected `;' before 'e'
nwtpArrayD1.h:463: error: 'e' was not declared in this scope
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::Read(std::istream&, bool)':
nwtpArrayD1.h:509: error: expected `;' before 'e'
nwtpArrayD1.h:510: error: 'e' was not declared in this scope
nwtpArrayD2.h: In member function 'void nwtpArrayD2<tType>::CheckBounds(const int&, const int&) const':
nwtpArrayD2.h:514: error: expected `;' before 'e'
nwtpArrayD2.h:515: error: 'e' was not declared in this scope
nwtpArrayD2.h: In member function 'void nwtpArrayD2<tType>::CheckSliceRangeLength(const nwRange&, const nwRange&) const':
nwtpArrayD2.h:541: error: expected `;' before 'e'
nwtpArrayD2.h:542: error: 'e' was not declared in this scope
nwtpArrayD2.h: In member function 'void nwtpArrayD2<tType>::CheckSubRange(const nwRange&, const nwRange&) const':
nwtpArrayD2.h:570: error: expected `;' before 'e'
nwtpArrayD2.h:571: error: 'e' was not declared in this scope
nwtpArrayD2.h: In member function 'nwtpArrayD2<tType> nwtpArrayD2<tType>::operator*(const nwtpArrayD2<tType>&)':
nwtpArrayD2.h:672: error: expected `;' before 'e'
nwtpArrayD2.h:673: error: 'e' was not declared in this scope
nwtpArrayD3.h: In member function 'void nwtpArrayD3<tType>::CheckBounds(const int&, const int&, const int&) const':
nwtpArrayD3.h:563: error: expected `;' before 'e'
nwtpArrayD3.h:564: error: 'e' was not declared in this scope
nwtpArrayD3.h: In member function 'void nwtpArrayD3<tType>::CheckSliceRangeLength(const nwRange&, const nwRange&, const nwRange&) const':
nwtpArrayD3.h:593: error: expected `;' before 'e'
nwtpArrayD3.h:594: error: 'e' was not declared in this scope
nwtpArrayD3.h: In member function 'void nwtpArrayD3<tType>::CheckSubRange(const nwRange&, const nwRange&, const nwRange&) const':
nwtpArrayD3.h:626: error: expected `;' before 'e'
nwtpArrayD3.h:627: error: 'e' was not declared in this scope
nwAGCM.cpp: In static member function 'static void nwAGCM::Run()':
nwAGCM.cpp:318: warning: converting to 'int' from 'double'
nwAGCM.cpp:319: warning: converting to 'int' from 'double'
nwAGCM.cpp:320: warning: converting to 'int' from 'double'
nwAGCM.cpp:321: warning: converting to 'int' from 'double'
nwAGCM.cpp:479: warning: converting to 'int' from 'aReal'
nwAGCM.cpp:530: warning: converting to 'int' from 'float'
nwAGCM.cpp:637: warning: converting to 'int' from 'float'
nwAGCM.cpp: In static member function 'static void nwAGCM::Step1B()':
nwAGCM.cpp:1515: warning: converting to 'int' from 'float'
nwAGCM.cpp:1535: warning: converting to 'int' from 'float'
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::CheckBounds(const int&) const [with tType = float]':
nwtpArrayD1.h:315:   instantiated from 'int nwtpArrayD1<tType>::Location(int) const [with tType = float]'
nwtpArrayD1.h:340:   instantiated from 'tType& nwtpArrayD1<tType>::operator()(int) [with tType = float]'
nwAGCM.cpp:346:   instantiated from here
nwtpArrayD1.h:419: error: dependent-name 'nwtpArrayD1<tType>::exception' is parsed as a non-type, but instantiation yields a type
nwtpArrayD1.h:419: note: say 'typename nwtpArrayD1<tType>::exception' if a type is meant
nwtpArrayD2.h: In member function 'void nwtpArrayD2<tType>::CheckBounds(const int&, const int&) const [with tType = float]':
nwtpArrayD2.h:355:   instantiated from 'int nwtpArrayD2<tType>::Location(int, int) const [with tType = float]'
nwtpArrayD2.h:384:   instantiated from 'tType& nwtpArrayD2<tType>::operator()(int, int) [with tType = float]'
nwAGCM.cpp:353:   instantiated from here
nwtpArrayD2.h:514: error: dependent-name 'nwtpArrayD2<tType>::exception' is parsed as a non-type, but instantiation yields a type
nwtpArrayD2.h:514: note: say 'typename nwtpArrayD2<tType>::exception' if a type is meant
nwtpArrayD1.h: In member function 'void nwtpArrayD1<tType>::CheckBounds(const int&) const [with tType = int]':
nwtpArrayD1.h:315:   instantiated from 'int nwtpArrayD1<tType>::Location(int) const [with tType = int]'
nwtpArrayD1.h:340:   instantiated from 'tType& nwtpArrayD1<tType>::operator()(int) [with tType = int]'
nwAGCM.cpp:615:   instantiated from here
nwtpArrayD1.h:419: error: dependent-name 'nwtpArrayD1<tType>::exception' is parsed as a non-type, but instantiation yields a type
nwtpArrayD1.h:419: note: say 'typename nwtpArrayD1<tType>::exception' if a type is meant
make: *** [nwAGCM.o] Error 1

**************************************************************************************************************************************************
Makefile
----------------

# this is a test makefile under development
# SHELL = /usr/bin/sh

# my macros
HOME_DIR = /home3/vym
CLASSES_HOME = $(HOME_DIR)/Langs/Cpp/Classes
APPLICN_HOME = $(HOME_DIR)/Langs/Cpp/Applications/NumericalWeather
CALAPPL_HOME = $(HOME_DIR)/Langs/Cpp/Applications/Calendar
VARSHAP_HOME = $(HOME_DIR)/Langs/Cpp/Applications/NumericalWeather/Framework
 
INCLUDE_DIR = -I $(CLASSES_HOME)/include \
              -I $(APPLICN_HOME)/Varsha++Modules/include \
              -I $(CALAPPL_HOME) \
              -I $(CLASSES_HOME)/Utils

PRG = pNumericalWeather

CPP_PRG_FILES = NumericalWeather \
                nwAGCM nwMain nwCommandLine \
        nwRunParameter nwParameter \
                nwConstantData nwBoundaryConditionData nwInitialConditionData \
                nwTabularData nwAuxiliaryData \
                nwInput nwOutput \
                nwInputStream \
                nwTestCode \
                nwAllConsts nwCommonLog nwErrorLog nwImplementationErrorLog \
                pulsar anException \
        calBase calEpochs calFn calGregorian calIso calJulian \
        calJulianDayNumber calNames calOldHinduLunar calOldHinduSolar \
        calRataDie \
                nwAstsav \
                nwComdrg nwComgwd nwComlonf nwComlonb nwComlonr nwCommon nwCombit nwComind \
                nwCommst nwComdpt nwComvap nwComprg nwComvct nwComshl nwComdcy  nwDiucon \
                nwCszsav nwPhycon nwHcon nwSSAlbedo nwBdcomb nwBdwide nwBandta nwPrfsav nwSwrsav \
                nwGozcom nwPln2tc nwSpecuc nwGCMParallel nwMtrDiag nwSwdiag nwTbltmp nwRdfsav \
                nwTabcom nwCO2Data nwBlankCommon nwVerfid nwGg12sv nwTables nwNewBL nwComcld \
                nwTransformIndex nwTransformRowUtils nwTransformFFT \
                nwTransformPoly nwTransformDztouv nwTransformConsts nwTransformSums \
                nwPhysicsGwdrag nwPhysicsVerticalDiff nwPhysicalParam nwPhysics nwPhysicsPbl \
                nwPhysicsLargeScaleConvection nwPhysicsMoistadiabat \
                nwDynamicsDamping nwDynamicsDeldif nwDynamicsTopo nwDynamicsSetupMatrices \
                nwDynamicsMisc nwDynamicsDellnp nwDynamicsUpdateQVor nwDynamicsSpecu \
                nwDynamicsFiltering nwDynamicsCalc nwDynamicsGridNcalc nwDynamicsVertVel \
                nwGCMTimeStep nwGCMInit nwNipct \
                nwRadMisc nwRadDiurnalCycle nwRadCintp nwRadTable nwRad2 nwRadCO2Cloud \
                nwRadAnglecalc nwRadGrid  nwRadDateCalc nwRadLw1 nwRadLw2 \
                nwRadLw3 nwRadSw nwRadLwmain nwRadDiag nwRadO3 \
                nwPhysicsShallowConvention  nwRadiationCalc nwRadLW4 \
                nwRadCloudsJms nwPhysicsCumulusKuo
# generate souce file list
CPP_SOURCES = $(CPP_PRG_FILES:=.cpp)

OBJECTS = $(CPP_SOURCES:.cpp=.o) $(C_SOURCES:.c=.o)

C++ = g++

C++FLAGS = -O3

.SUFFIXES: .cpp

prg: $(CPP_SOURCES) $(HEADERS) $(OBJECTS)
    $(C++) /*-LANG:std*/ $(C++FLAGS) $(OBJECTS) -o $(PRG) -lm
.cpp.o:
    $(C++) -c -LANG:std $(C++FLAGS) $? $(INCLUDE_DIR)
.cxx.o:
    $(C++) -c -LANG:std $(C++FLAGS) $? $(INCLUDE_DIR)
clean:
    rm -f $(OBJECTS)
clobber:
    rm -f $(OBJECTS) *.cpp *.h $(PRG)
    rm -f *.inp *.Log *.dat *.15 *.11
    rm -f ii_files/*.*
    -rmdir ii_files
run:
    ./$(PRG)
links:
    rm -f *.cpp *.h
#    ln -s $(APPLICN_HOME)/*.cpp .
    ln -s $(VARSHAP_HOME)/*.cpp .
    ln -s $(VARSHAP_HOME)/*.h .
    ln -s $(CLASSES_HOME)/anException/anException.cpp .
    ln -s $(CLASSES_HOME)/include/anException.h .
    ln -s $(CLASSES_HOME)/Utils/pulsar.cpp
    ln -s $(CLASSES_HOME)/Utils/positionMarker.h
    ln -s $(CLASSES_HOME)/Utils/plume_aStream.h
    ln -s $(CALAPPL_HOME)/*.cpp .
    ln -s $(CALAPPL_HOME)/*.h .
    ln -s $(APPLICN_HOME)/InputData/*.inp .
    ln -s $(APPLICN_HOME)/InputData/*.15 .
    ln -s $(APPLICN_HOME)/InputData/*.11 .
    ln -s $(APPLICN_HOME)/InputData/*.dat .
    ln -s $(APPLICN_HOME)/Varsha++Modules/src/*.cpp .
    ln -s $(APPLICN_HOME)/Varsha++Modules/include/*.h .
    ln -s $(CLASSES_HOME)/include/cpuClock.h .
tell:
    @echo $(CPP_SOURCES)
    @echo $(OBJECTS)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Can please help me out with this error?

Thanks with regards
Nisha.G

reply via email to

[Prev in Thread] Current Thread [Next in Thread]