[pooma-dev] Problems Compiling Pooma 2 with gcc snapshot date d 5/27/01

James Crotinger JimC at proximation.com
Wed Jun 13 19:30:53 UTC 2001


Did you look at GCC's string.h? memcpy should be declared in there. If not,
I think this is a GCC bug. 

	Jim


> -----Original Message-----
> From: Dave Nystrom [mailto:wdn at lanl.gov]
> Sent: Wednesday, June 13, 2001 1:13 PM
> To: James Crotinger
> Cc: 'Dave Nystrom'; pooma-dev; Don Marshall
> Subject: RE: [pooma-dev] Problems Compiling Pooma 2 with gcc snapshot
> date d 5/27/01
> 
> 
> Hi Jim,
> 
> Thanks.  I tried your change and I still get the same result 
> - failed compile
> with the same error message.
> 
> Dave Nystrom			email: wdn at lanl.gov
> LANL X-3			phone: 505-667-7913	fax: 
> 505-665-3046
> 
> James Crotinger writes:
>  > Dave, try again. Ambro had put
>  > 
>  > extern "C" {
>  > #include <string.h>
>  > }
>  > 
>  > in two of the files in that directory, and that may have 
> been causing a
>  > problem. If this doesn't fix it, then it sounds like a GCC 
> problem since
>  > memcpy is supposed to be in string.h.
>  > 
>  > 	Jim
>  > 
>  > > -----Original Message-----
>  > > From: Dave Nystrom [mailto:wdn at lanl.gov]
>  > > Sent: Wednesday, June 13, 2001 11:38 AM
>  > > To: pooma-dev
>  > > Cc: Don Marshall
>  > > Subject: [pooma-dev] Problems Compiling Pooma 2 with gcc 
>  > > snapshot dated
>  > > 5/27/01
>  > > 
>  > [...]
>  > 
>  > > /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ
>  > > ers.h: In 
>  > >    function `int streamOut(char*&, const T&) [with T = int]':
>  > > /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ
>  > > ers.h:133:   instantiated from `int serialize(Stream&, const 
>  > > T&) [with Stream = ch
>  > > ar*, T = int]'
>  > > /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ
>  > ers.cmpl.cpp:111:   instantiated from > here
>  > > /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ
>  > > ers.h:71: `memcpy'
>  > >    undeclared (first use this function)
>  > > /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ
>  > > ers.h:71: (Each 
>  > >    undeclared identifier is reported only once for each 
>  > > function it appears 
>  > >    in.)
>  > > 
>  > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
>  > <HTML>
>  > <HEAD>
>  > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
> charset=iso-8859-1">
>  > <META NAME="Generator" CONTENT="MS Exchange Server version 
> 5.5.2650.12">
>  > <TITLE>RE: [pooma-dev] Problems Compiling Pooma 2 with gcc 
> snapshot dated 5/27/01</TITLE>
>  > </HEAD>
>  > <BODY>
>  > 
>  > <P><FONT SIZE=2>Dave, try again. Ambro had put</FONT>
>  > </P>
>  > 
>  > <P><FONT SIZE=2>extern "C" {</FONT>
>  > <BR><FONT SIZE=2>#include <string.h></FONT>
>  > <BR><FONT SIZE=2>}</FONT>
>  > </P>
>  > 
>  > <P><FONT SIZE=2>in two of the files in that directory, and 
> that may have been causing a problem. If this doesn't fix it, 
> then it sounds like a GCC problem since memcpy is supposed to 
> be in string.h.</FONT></P>
>  > 
>  > <P>        <FONT 
> SIZE=2>Jim</FONT>
>  > </P>
>  > 
>  > <P><FONT SIZE=2>> -----Original Message-----</FONT>
>  > <BR><FONT SIZE=2>> From: Dave Nystrom [<A 
> HREF="mailto:wdn at lanl.gov">mailto:wdn at lanl.gov</A>]</FONT>
>  > <BR><FONT SIZE=2>> Sent: Wednesday, June 13, 2001 11:38 
> AM</FONT>
>  > <BR><FONT SIZE=2>> To: pooma-dev</FONT>
>  > <BR><FONT SIZE=2>> Cc: Don Marshall</FONT>
>  > <BR><FONT SIZE=2>> Subject: [pooma-dev] Problems 
> Compiling Pooma 2 with gcc </FONT>
>  > <BR><FONT SIZE=2>> snapshot dated</FONT>
>  > <BR><FONT SIZE=2>> 5/27/01</FONT>
>  > <BR><FONT SIZE=2>> </FONT>
>  > <BR><FONT SIZE=2>[...]</FONT>
>  > </P>
>  > 
>  > <P><FONT SIZE=2>> 
> /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ</FONT>
>  > <BR><FONT SIZE=2>> ers.h: In </FONT>
>  > <BR><FONT SIZE=2>>    function `int 
> streamOut(char*&, const T&) [with T = int]':</FONT>
>  > <BR><FONT SIZE=2>> 
> /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ</FONT>
>  > <BR><FONT SIZE=2>> ers.h:133:   instantiated 
> from `int serialize(Stream&, const </FONT>
>  > <BR><FONT SIZE=2>> T&) [with Stream = ch</FONT>
>  > <BR><FONT SIZE=2>> ar*, T = int]'</FONT>
>  > <BR><FONT SIZE=2>> 
> /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ</FONT>
>  > <BR><FONT SIZE=2>ers.cmpl.cpp:111:   
> instantiated from > here</FONT>
>  > <BR><FONT SIZE=2>> 
> /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ</FONT>
>  > <BR><FONT SIZE=2>> ers.h:71: `memcpy'</FONT>
>  > <BR><FONT SIZE=2>>    undeclared (first 
> use this function)</FONT>
>  > <BR><FONT SIZE=2>> 
> /home/wdn/blanca/packages/Pooma2/r2_2001_05_23/src/IO/Serializ</FONT>
>  > <BR><FONT SIZE=2>> ers.h:71: (Each </FONT>
>  > <BR><FONT SIZE=2>>    undeclared 
> identifier is reported only once for each </FONT>
>  > <BR><FONT SIZE=2>> function it appears </FONT>
>  > <BR><FONT SIZE=2>>    in.)</FONT>
>  > <BR><FONT SIZE=2>> </FONT>
>  > </P>
>  > 
>  > </BODY>
>  > </HTML>
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010613/d5de2ec4/attachment.html>


More information about the pooma-dev mailing list