(msvc) avoid LNK1169 errors
Jarosław Staniek
js at iidea.pl
Tue Jun 26 13:05:37 CEST 2007
Christian Ehrlicher said the following, On 2007-06-26 09:14:
> Jarosław Staniek schrieb:
>> Hello,
>> Could it be sane to globally add the following setting?
>>
>> if(MSVC)
>> # avoid LNK1169 errors
>> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FORCE:MULTIPLE")
>> endif(MSVC)
>>
>> This removed linker error when operators with templates are defined
>> many times in various libs. [1]
>>
> Wouldn't it be better to fix the template issue instead just ignoring
> some warnings?
Right, added this line:
Q_TEMPLATE_EXTERN template class Q_CORE_EXPORT QVector<QString>;
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice: http://www.kexi.pl/en, http://www.koffice.org
KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org
More information about the Kde-windows
mailing list