I just downloaded the current version of Pork from Mozilla.org and
attempted to build it in Cygwin using gcc 3.4.4 (and gcc 4.3.2). In both
cases I get the following error:
++ -c -o stringset.o stringset.cc -g -Wall -Wno-deprecated -D__UNIX__
-DNDEBUG -D__CYGWIN__
In file included from stringset.h:7,
from stringset.cc:4:
strsobjdict.h:25: error: `string' has not been declared
strsobjdict.h:25: error: ISO C++ forbids declaration of `key' with no
type
strsobjdict.h:40: error: ISO C++ forbids declaration of `string' with no
type
strsobjdict.h:40: error: expected `;' before "const"
strsobjdict.h:41: error: expected `;' before "T"
strsobjdict.h:59: error: ISO C++ forbids declaration of `string' with no
type
strsobjdict.h:59: error: expected `;' before "const"
strsobjdict.h:60: error: expected `;' before "T"
In file included from stringset.cc:4:
stringset.h: In member function `const sm::string&
StringSet::Iter::data() const':
stringset.h:31: error: 'const class StringSObjDict<int>::Iter' has no
member named 'key'
stringset.h: In member function `const sm::string&
StringSet::IterC::data() const':
stringset.h:49: error: 'const class StringSObjDict<int>::IterC' has no
member named 'key'
make[1]: *** [stringset.o] Error 1
make[1]: Leaving directory
`/cygdrive/d/scv/pork-2008-11-20/oink-stack/smbase'
make: *** [all-rec] Error 1
It appears to be a problem with sm::string vs. std::string. I thought
all of this had been fixed. Can anyone comment on this?
Steve Hickman, Senior Scientist
Project Management Professional
Honeywell Aerospace Advanced Technology
1985 Douglas Drive N., Golden Valley MN 55422
M/S MN10-122B
Tel: 763-954-6791
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis