This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc 3.0 cannot compile pooma



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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]