www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/03/17:08:17

Sender: nate AT cartsys DOT com
Message-ID: <36670A51.43C7538F@cartsys.com>
Date: Thu, 03 Dec 1998 14:01:53 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: function parameter type cast missing?
References: <01be1eac$7ec991a0$e9024ac3 AT vpk2 DOT sci DOT fi>
Reply-To: djgpp AT delorie DOT com

> Veli-Pekka Kilpeläinen wrote:
> 
> I'm a newbie with c/c++ so this might be a stupid question.
> 
> Why I can't use <movedata.h> header? When I try to Rhide my prog all I
> get is an error message that function parameter typecasts are
> missing(in that header). Like   void function(int para1, para2); I can
> change my own functions to   void function(int para1, int para2);
> which will be accepted, but that doesn't make sense with standarn
> headers.
> 
> Is this C or C++ header? my progs extension is .cpp and I'm trying to
> learn C++. Should I use some other header and function to move lot's
> of data around?

The header works as either C or C++.  There is a bug in it; it uses the
type `size_t' to declare the functions, but neglects to define it
first.  You can work around this by including <sys/types.h> or another
header which does define `size_t' before including <sys/movedata.h>.

This is fixed in the 2.02 beta.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019