Robin Summerhill wrote: > > I finally worked out what was going wrong here. > > It's to do with the requirement to mark declarations with > __declspec(DLLEXPORT) or _declspec(DLLIMPORT)to get DLL linking working > properly with MSVC. > > SIP_EXTERN is declared in sip.h and ends up as SIP_EXPORT or SIP_IMPORT > according to whether the preprocessor symbols SIP_MAKE_DLL or SIP_USE_DLL > are defined. Sip.exe uses this declaration to enable sip-generated headers > to be used both in building the dll (EXPORT) and the client of the dll > (IMPORT). However, the sip-generated headers that are included in the PyQT > distribution have been edited to change SIP_EXTERN to SIP_EXPORT, meaning > that these headers can only be used to build the libqtc dll, *not* consume > it. > > There is no clean way around this with the present setup, because SIP_EXTERN > is used in the SIP headers too. You can't just change SIP_EXPORT back to > SIP_EXTERN because that prevents you from building libqtc.
Hopefully fixed in 3.2 - but I haven't tested it. You won't need to specify SIP_USE_DLL anymore - things "should just work". If you are creating a module that %Imports the PyQt .sip files then you will now need -DSIP_MAKE_MODULE_DLL in the CXXFLAGS. Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
