Mail Archives: djgpp/1998/12/03/17:08:17
> 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 -