maoyg wrote:
Hi,all
I encounted a compile's error, I downloaded OOom42 code,when I call the "build" 
command to compile sc module,
there is no any problem,it can finish for build. But when I call the "build 
debug=t" command, it will occur some error,
the error information is "Creating library ../wntmsci10.pro/lib/scuiimp.lib and object 
../wntmsci10.pro/lib/scuiimp.exp sci.lib(scmi.dll) : error LNK2005: "public: unsigned short 
__thiscall ScCollection::GetCount(void)const " (?getco...@sccollection@@QBEGXZ) already 
defined in scui.lib(pvfundlg.obj)", are there any people can solve this problem?
Thanks.

Hi,
in debug mode the inlines like ScCollection::GetCount() are instanciated in both libraries. You can get rid of this problem in Windows if you change the export qualifiers in sc/inc/collect.hxx. You have to change the SC_DLLPUBLIC into SC_DLLPRIVATE. Then you have to add SC_DLLPUBLIC in front of all non-inline methods.
Please note that this change will break the build on other platforms.

Regards,
Oliver




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to