Try replacing BinaryStream.cc:105 bool BinaryOutputStream::write(const bool *v, std::streamsize n) { with bool Core::BinaryOutputStream::write(const bool *v, std::streamsize n) { That is, explicitly specify the namespace. That's the only change I had to make to get it to compile and run properly. Roy On 2/14/06, Krishna M. Roskin <krish@soe.ucsc.edu> wrote:
Hello,
I have been unable to compile the library. I've tried with GCC 3.4.4 and GCC 4.0.2. I get this error message:
BinaryStream.cc:105: warning: specialization of 'template<class T> bool Core::BinaryOutputStream::write(const T*, std::streamsize)' in different namespace BinaryStream.hh:136: warning: from definition of 'template<class T> bool Core::BinaryOutputStream::write(const T*, std::streamsize)' BinaryStream.cc: In member function 'bool Core::BinaryOutputStream::write(const T*, std::streamsize) [with T = bool]': BinaryStream.cc:105: internal compiler error: in comptypes, at cp/typeck.c:942 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
If I comment out those errors, I still get this:
Parameter.cc:174: warning: extra ';' Parameter.cc:179: error: expected unqualified-id before ';' token Parameter.cc:180: error: expected unqualified-id before ';' token Parameter.cc:181: error: expected unqualified-id before ';' token Parameter.cc:182: error: expected unqualified-id before ';' token Parameter.cc:183: error: expected unqualified-id before ';' token Parameter.cc:184: error: expected unqualified-id before ';' token Parameter.cc:185: error: expected unqualified-id before ';' token Parameter.cc:187: error: expected unqualified-id before ';' token Parameter.cc:188: error: expected unqualified-id before ';' token Parameter.cc:189: error: expected unqualified-id before ';' token
From my understanding of the internal compiler error in the first error, is that it has so to do with the type checker failing when it tries to compare two types. It seems that both these errors have to do with template specilization.
Any suggestions on what I can do to compile the code? Should I downgrade GCC to 3.2 (which is what you quote in the README)?
-krish
-- Krishna M. Roskin Center for Biomolecular Science and Engineering, UC Santa Cruz mailto:krish@soe.ucsc.edu http://www.soe.ucsc.edu/~krish/
_______________________________________________ fsa mailing list fsa@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/fsa