Bjorn Pettersen wrote: > > I'm having problems with the SIP generated code on windows. The > generated code looks like (.h): > > extern SIP_MODULE_EXTERN char > sipName_NrxDataTypes_findMostRecentScoringInstance[]; > extern SIP_MODULE_EXTERN char sipName_NrxDataTypes_getNarexOwnerId[]; > extern SIP_MODULE_EXTERN char sipName_NrxDataTypes_getNarexId[]; > > and (.cpp): > > char sipName_NrxDataTypes_findMostRecentScoringInstance[] = > "findMostRecentScoringInstance"; > char sipName_NrxDataTypes_getNarexOwnerId[] = "getNarexOwnerId"; > char sipName_NrxDataTypes_getNarexId[] = "getNarexId"; > > and msvc complains about "warning C4273: inconsistent dll linkage. > dllexport assumed." > > If I change SIP_MODULE_EXTERN to SIP_EXPORT everything works fine (is > that a correct solution?) I tried defining SIP_MAKE_MODULE_DLL, but that > had no effect.
If you look in sip.h you'll see that all SIP_MAKE_MODULE_DLL does is to define SIP_MODULE_EXTERN as SIP_EXPORT. Defining SIP_MAKE_MODULE_DLL is the correct thing to do - maybe you didn't re-build everything when you tried it before? Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
