Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] c++ compile prolem



On Fri, 2003-02-28 at 03:54, Brett Robson wrote:

> XMap.cc: In method `XMap::XMap(int)':
> XMap.cc:32: ANSI C++ forbids implicit conversion from `void *' in 
> assignment
> *** Error code 1
<snip>

>      if((caddr_t)(-1) == mapaddr)

Try changing this line to:

if ( ((int) mapaddr) == -1 )


See "man mmap"

Dave 





Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links