krita on win32/msvc
cberger at cberger.net
Thu Mar 20 22:12:54 CET 2008
On Thursday 20 March 2008, Jarosław Staniek wrote:
> I've patched fkis_types.h for msvc 2k5 sp1 (we needed explicit declarations
> for classes used in the shared pointer templates).
> Now I have the following problem with KisNodeWSP (any ideas?):
Well yes. I suspect some cyclic dependency of headers. kis_paint_device.h call
It's not clear to me, form which cpp file comes the error. But for the sake of
clarity, I will take an example, lets take kis_image.cc, it tries to includes
kis_types.h, then kis_types.h includes kis_paint_device.h, which tries to
include kis_types.h to get the smart pointers, but it doesn't parse anything
in kis_types.h due to the "#ifndef KISTYPES_H_" protection, so it return to
kis_paint_device.h without the definition of the smart pointers. That would
be my explanation of the error.
Now you said that Krita was the last KDE application that doesn't build on
windows. I do think that kopete also use kdelibs smart pointers (from which
krita smart pointer are a fork), so how did they solve that cross smart
pointers definition ?
More information about the kimageshop