gcc 3.0 cannot compile pooma

Peter Schmid schmid@snake.iap.physik.tu-darmstadt.de
Tue Jun 5 17:36:00 GMT 2001


gcc version 3.0 20010604 cannot compile pooma-gcc on
i686-pc-linux-gnu. Compilation of
Serializers.cmpl.cpp stops with the messages:
/home/peter/trans/pooma-gcc/src/IO/Serializers.h: In function `int 
   streamOut(char*&, const T&) [with T = int]':
/home/peter/trans/pooma-gcc/src/IO/Serializers.h:133:   instantiated from `int serialize(Stream&, const T&) [with Stream = char*, T = int]'
/home/peter/trans/pooma-gcc/src/IO/Serializers.cmpl.cpp:111:   instantiated from here
/home/peter/trans/pooma-gcc/src/IO/Serializers.h:71: `memcpy' undeclared (first 
   use this function)
/home/peter/trans/pooma-gcc/src/IO/Serializers.h:71: (Each undeclared 
   identifier is reported only once for each function it appears in.)
Command exited with non-zero status 1.

A minimal version of the failing source code is shown below:

#include <string>
extern "C"{
#include <string.h>
}
int streamStringOut(char*& s){
  int len;
  memcpy((void*)s,(const void*)&len, sizeof(len));;
  return len;
}

Since the successful compilation of pooma is a milestone for the
release process of the gcc 3.0 compiler, I believe this problem should
be fixed as soon as possible. 
 
I could compile pooma about two weeks ago when I last tried.

Hope this helps,

Peter Schmid 



More information about the Libstdc++ mailing list