[interfacekit] Re: OBOS Support kit doesn't compile: solution

> Now that I am a little confident with jam, 
> I finally found what's the problem with our support kit:
> PropertyInfo fails to compile:
> Here's the output of gcc:
> 
> "/boot/home/progetti/openbeos/current/src/kits/app/PropertyInfo.cpp: 
> In 
> method `status_t BPropertyInfo::Unflatten(long unsigned int, const 
> void *, 
> long int)':
> /boot/home/progetti/openbeos/current/src/kits/app/
> PropertyInfo.cpp:302: 
> static_cast from `const void *' to `char *' casts away constness
> /boot/home/progetti/openbeos/current/src/kits/app/
> PropertyInfo.cpp:305: 
> static_cast from `const void *' to `char *' casts away constness
> /boot/home/progetti/openbeos/current/src/kits/app/
> PropertyInfo.cpp:348: 
> static_cast from `const void *' to `char *' casts away constness
> /boot/home/progetti/openbeos/current/src/kits/app/
> PropertyInfo.cpp:378: 
> static_cast from `const void *' to `char *' casts away constness
> /boot/home/progetti/openbeos/current/src/kits/app/
> PropertyInfo.cpp:381: 
> static_cast from `const void *' to `char *' casts away constness
> 
> gcc  -c "../../src/kits/app/PropertyInfo.cpp"  -O1   -I../../src/kits 
> -I../../src/kits/app -I../../src/kits/interface -I../../src/kits/
> support 
> -I../../src/kits/storage -I../../src/kits/storage/mime 
> -I../../src/kits/storage/sniffer -I../../headers/private/app 
> -I../../headers/os/app -I../../headers/private/interface 
> -I../../headers/os/interface -I../../headers/private/support 
> -I../../headers/os/support -I../../headers/private/storage 
> -I../../headers/os/storage -I../../headers/os/add-ons/file_system 
> -I../../headers/private/shared  -o 
> "../../objects/x86.R1/kits/PropertyInfo.o"  ;
> 
> ...failed C++ ../../objects/x86.R1/kits/PropertyInfo.o ...
> ...skipped libopenbeos.so for lack of <src!kits>PropertyInfo.o...
> ...skipped <boot!home!config!lib>libopenbeos.so for lack of 
> libopenbeos.so..."
> 
> etc. etc. 

Fascinating. The file compiles fine for me. I use the standard R5 
compiler (2.9-beos-991026), and it doesn't treat these as errors (not 
even as warnings), although it should, of course.

CU, Ingo



Other related posts: