stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: stdcxx compilation failed with VC8 option Non (/Zc:wchar_t-)
Date Wed, 15 Nov 2006 16:47:00 GMT
Martin Sebor wrote:
[...]
>>     I have to compile xerces + xalan project with stdcxx. For 
>> xalan-xerces compatibility I have to use on VC 8 option : 
>> c++/language/ "wchar_t as integrated type" option Non (/Zc:wchar_t-)
>>  
>>  
>>     If I choose this option on xalan compilation with a stdcxx I have 
>> this compilation error :
>>  
>> 1>d:\NPTE\dev\src\cpp\externals\win32\include\rw/_select.h(78) : error 
>> C2766: spécialisation explicite ; '__rw::__rw_select_int<unsigned 
>> short>' a déjà été défini

The explicit specialization on this line is guarded with the
_RWSTD_NO_NATIVE_WCHAR_T configuration macro. The macro is
#defined when wchar_t is detected not to be a distinct type
(i.e., when it's a typedef for one of the other C++ types).

The error message suggests that you are compiling the header
with a different setting of the /Zc:wchar_t option that what
you used to configure the library. Since this is option
affects the binary compatibility of the code generated by the
compiler you must use the same setting consistently.

>>
>> 1> d:\NPTE\dev\src\cpp\externals\win32\include\rw/_select.h(66) : voir 
>> la définition précédente de '__rw_select_int<unsigned short>'
>>
>>  
>>     So i decided to compile stdcxx with the same option Non 
>> (/Zc:wchar_t-)
>>     
>>     Then i encoutered a new problem on stdcxx compilation, while 
>> compiling rwtest project :

This looks like another symptom of the same problem. Make sure
you reconfigure the library each time you change the setting of
the option.

Martin

>>   
>> 1>any.cpp
>>
>> 1>D:\dev\stl\stdcxx-4.1.3\tests\include\any.h(66) : error C2535: 
>> 'rw_any_t::rw_any_t(unsigned short)' : fonction membre déjà définie ou 
>> déclarée
>>
>> 1> D:\dev\stl\stdcxx-4.1.3\tests\include\any.h(42) : voir la 
>> déclaration de 'rw_any_t::rw_any_t'
>>
>> 1>..\..\..\stdcxx-4.1.3\tests\src\any.cpp(188) : error C2084: la 
>> fonction 'rw_any_t::rw_any_t(unsigned short)' a déjà un corps
>>
>> 1> D:\dev\stl\stdcxx-4.1.3\tests\include\any.h(42) : voir la 
>> définition précédente de '{ctor}'
>>
>>  
>>     What shalI do ?
>>  
>>     Thanks,
>>  
>> ------------------------------------------------------------------------
>> <>*Nadine Faizant*
>> *NewPhenix*
>> Z.A. - 5, Rue de l'Auberte
>> 30 133 Les Angles
>>
>> Tél : 04 90 26 74 82
>> Fax : 04 90 26 90 84
>> Courriel : nadine.faizant@nautitia.fr <mailto:nadine.faizant@nautitia.fr>
>> ------------------------------------------------------------------------
> 
> 


Mime
View raw message