compiling errors

Neil Dombrowski <[email protected]> Tue, 20 Jan 2009 13:14:54 -0600
Newsgroups gmane.comp.gnu.gift.general
Message-ID <[email protected]>
My rpmbuild for the prerequisite failed. I tried untarring and compiling 
gift-0.1.6pre3 ("./configure" then "make"), but I get the same error 
that rpmbuild got. I wasn't able find this particular error in google. 
The server is a 64-bit RHEL5.2 server. I'm guessing I'm missing 
something simple; I just don't know what. What do I need to do to get 
this to compile?

Thanks,
	Neil


g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAS_BOOL -DLINK_DYNAMICALLY 
-I../../libUnpublished/include -I../../libGIFTAcPerl/include 
-I../../libGIFTQuPerl/include -I../../libGIFTAcInvertedFile/include 
-I../../libGIFTQuInvertedFile/include -I../../libGIFTAcHierarchy/include 
-I../../libGIFTQuHierarchy/include -I../../libGIFTQuBayesian/include 
-I../../libGIFTAcDistanceMatrix/include -I../../libGIFTAcURL2FTS/include 
-I../../libMRML/include -I../../expat/xmlparse -I../../expat/xmltok -g 
-O2 -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 
-DEF_FILL=42 -Wp,-MD,.deps/CAccessorElement.pp -c CAccessorElement.cc 
-fPIC -DPIC -o CAccessorElement.o
../../libMRML/include/CAccessorElement.h:14: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:16: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:18: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:22: error: expected ',' or 
'...' before '&' token
../../libMRML/include/CAccessorElement.h:24: error: ISO C++ forbids 
declaration of 'string' with no type
../../libMRML/include/CAccessorElement.h:28: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:30: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:32: error: 'string' does not 
name a type
../../libMRML/include/CAccessorElement.h:43: error: expected 
template-name before '<' token
../../libMRML/include/CAccessorElement.h:43: error: expected `{' before 
'<' token
../../libMRML/include/CAccessorElement.h:43: error: expected 
unqualified-id before '<' token
../../libMRML/include/CAccessorElement.h:50: error: expected 
template-name before '<' token
../../libMRML/include/CAccessorElement.h:50: error: expected `{' before 
'<' token
../../libMRML/include/CAccessorElement.h:50: error: expected 
unqualified-id before '<' token
../../libMRML/include/CAccessorElement.h:57: error: expected 
template-name before '<' token
../../libMRML/include/CAccessorElement.h:57: error: expected `{' before 
'<' token
../../libMRML/include/CAccessorElement.h:57: error: expected 
unqualified-id before '<' token
../../libMRML/include/CAccessorElement.h:64: error: expected 
constructor, destructor, or type conversion before '&' token
CAccessorElement.cc:4: error: expected constructor, destructor, or type 
conversion before '&' token
CAccessorElement.cc:20: error: expected ',' or '...' before '&' token
CAccessorElement.cc:22: error: ISO C++ forbids declaration of 'string' 
with no type
CAccessorElement.cc: In constructor 
'CAccessorElement::CAccessorElement(TID, int)':
CAccessorElement.cc:24: error: class 'CAccessorElement' does not have 
any field named 'mURL'
CAccessorElement.cc:24: error: 'inURL' was not declared in this scope
CAccessorElement.cc:25: error: class 'CAccessorElement' does not have 
any field named 'mThumbnailURL'
CAccessorElement.cc:25: error: 'inThumbnailURL' was not declared in this 
scope
CAccessorElement.cc:26: error: class 'CAccessorElement' does not have 
any field named 'mFeatureFileName'
CAccessorElement.cc:26: error: 'inFeatureFileName' was not declared in 
this scope
CAccessorElement.cc: At global scope:
CAccessorElement.cc:30: error: 'string' does not name a type
CAccessorElement.cc:38: error: 'string' does not name a type
CAccessorElement.cc:42: error: 'string' does not name a type
CAccessorElement.cc:48: error: invalid use of undefined type 'class 
CSortByID_CAE'
../../libMRML/include/CAccessorElement.h:35: error: forward declaration 
of 'class CSortByID_CAE'
CAccessorElement.cc:54: error: invalid use of undefined type 'class 
CSortByURL_CAE'
../../libMRML/include/CAccessorElement.h:37: error: forward declaration 
of 'class CSortByURL_CAE'
CAccessorElement.cc: In member function 'bool 
CSortByURL_CAE::operator()(const CAccessorElement&, const 
CAccessorElement&) const':
CAccessorElement.cc:55: error: 'const class CAccessorElement' has no 
member named 'mURL'
CAccessorElement.cc:55: error: 'const class CAccessorElement' has no 
member named 'mURL'
CAccessorElement.cc: At global scope:
CAccessorElement.cc:60: error: invalid use of undefined type 'class 
CSortByThumbnailURL_CAE'
../../libMRML/include/CAccessorElement.h:39: error: forward declaration 
of 'class CSortByThumbnailURL_CAE'
CAccessorElement.cc: In member function 'bool 
CSortByThumbnailURL_CAE::operator()(const CAccessorElement&, const 
CAccessorElement&) const':
CAccessorElement.cc:61: error: 'const class CAccessorElement' has no 
member named 'mThumbnailURL'
CAccessorElement.cc:61: error: 'const class CAccessorElement' has no 
member named 'mThumbnailURL'
make[3]: *** [CAccessorElement.lo] Error 1
make[3]: Leaving directory `/home/neil/gift/gift-0.1.6pre3/libMRML/cc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/neil/gift/gift-0.1.6pre3/libMRML'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/neil/gift/gift-0.1.6pre3'
make: *** [all] Error 2



-- 
    |------------------------|
    | Neil Dombrowski        |
    | Systems Administration |
    | Pricegrabber.com       |
    | 5150 Goldleaf Circle   |
    | 2nd Floor              |
    | Los Angeles, CA 90056  |
    | Ph 608.215.6183        |
    |------------------------|