Problem building kdepimlibs on win32

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Jan 19 12:44:06 GMT 2007


Von: "Michael DrĂ¼ing" <michael at drueing.de>
> Hi,
> 
> I'm running into problems compiling kdepimlibs (SVN revision 625184) with
> MSVC8. Here's the relevant output from the compiler:
> 
> I:\Libs\kde\kdepimlibs\kcal\resourcecached.cpp(680) : error C2664:
> 'KCal::Calendar::registerObserver' : cannot convert parameter 1 from
> 'KCal::ResourceCached *const ' to 'KCal::Calendar::Observer *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> I:\Libs\kde\kdepimlibs\kcal\resourcecached.cpp(685) : error C2664:
> 'KCal::Calendar::unregisterObserver' : cannot convert parameter 1 from
> 'KCal::ResourceCached*const ' to 'KCal::Calendar::Observer *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> I:\Libs\kde\kdepimlibs-build\kcal\resourcecached.moc(58) : error C2440:
> 'static_cast' : cannot convert from 'KCal::ResourceCached *' to
> 'KCal::Calendar::Observer *'
>         Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> 
> This is strange, because as I see it, Kcal::ResourceCached derives from
> KCal::Calendar::Observer, so this conversion should be possible. I also have
> no idea where the "const" comes from, all the headers have the parameter to
> (un)registerObserver(...) without const modifier.
> 
kdepimlibs do not compile with msvc yet. Comment out the specified modules in main CMakeLists.txt

Christian
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail




More information about the kde-core-devel mailing list