Hi Gavin,
I guess my previous mail didnt reach you due to its size. Here it is,
"
Hi Gavin,
[
If you rename the .i file as a .cpp you can then add it to your project and
right-click-Compile it individually. If it still shows the original line
numbers then generate the .i file again but turn on the "Preprocess
Suppress Line Numbers" setting as well.
]
I will definitely try this right away and let you know.
[
Since this is C++11 code, let's go back to basics for a moment. Exactly
*which* version of Visual Studio are you using?
]
I am NOT using C++11. I am using Visual Studio 2005,
Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
[
Also which Boost version you're using too.
]
I am using boost_1_61_0.
Thanks,
Ram
On Thu, Sep 29, 2016 at 1:37 PM, Ram
Hi Gavin,
[ If you rename the .i file as a .cpp you can then add it to your project and right-click-Compile it individually. If it still shows the original line numbers then generate the .i file again but turn on the "Preprocess Suppress Line Numbers" setting as well. ] I compiled just that one file(after making changes to log preprocessor output to file). Replaced the contents of the same file by the contents of the .i file and tried compiling again and I get lot of errors as follows. Looks like I am doing something wrong.
------ Build started: Project: Worker, Configuration: Debug Win32 ------ Compiling... cl : Command line warning D9007 : '/C' requires '/E, /EP or /P'; option ignored manager_abc.cpp c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2042) : error C2011: 'localeinfo_struct' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2042) : see declaration of 'localeinfo_struct' c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2048) : error C2011: 'tagLC_ID' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2048) : see declaration of 'tagLC_ID' c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2057) : error C2011: 'threadlocaleinfostruct' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\crtdefs.h(2057) : see declaration of 'threadlocaleinfostruct' c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(561) : error C2011: 'std::_Lockit' : 'class' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(561) : see declaration of 'std::_Lockit' c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(708) : error C2011: 'std::_Mutex' : 'class' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(708) : see declaration of 'std::_Mutex' c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(760) : error C2011: 'std::_Init_locks' : 'class' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\yvals.h(760) : see declaration of 'std::_Init_locks' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(59) : error C2011: '_iobuf' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(59) : see declaration of '_iobuf' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(269) : error C2995: 'char *gets_s(char (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(269) : see declaration of 'gets_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(307) : error C2995: 'int _snprintf_s(char (&)[_Size],size_t,const char *,...)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(307) : see declaration of '_snprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(309) : error C2995: 'int sprintf_s(char (&)[_Size],const char *,...)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(309) : see declaration of 'sprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(326) : error C2995: 'errno_t tmpnam_s(char (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(326) : see declaration of 'tmpnam_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(336) : error C2995: 'int _vsnprintf_s(char (&)[_Size],size_t,const char *,va_list)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(336) : see declaration of '_vsnprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(342) : error C2995: 'int vsprintf_s(char (&)[_Size],const char *,va_list)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(342) : see declaration of 'vsprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(422) : error C2995: 'wchar_t *_getws_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(422) : see declaration of '_getws_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(437) : error C2995: 'int swprintf_s(wchar_t (&)[_Size],const wchar_t *,...)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(437) : see declaration of 'swprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(439) : error C2995: 'int vswprintf_s(wchar_t (&)[_Size],const wchar_t *,va_list)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(439) : see declaration of 'vswprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(445) : error C2995: 'int _snwprintf_s(wchar_t (&)[_Size],size_t,const wchar_t *,...)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(445) : see declaration of '_snwprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(447) : error C2995: 'int _vsnwprintf_s(wchar_t (&)[_Size],size_t,const wchar_t *,va_list)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(447) : see declaration of '_vsnwprintf_s' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(37) : error C2084: function 'int swprintf(wchar_t *,size_t,const wchar_t *,...)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(36) : see previous definition of 'swprintf' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(50) : error C2084: function 'int vswprintf(wchar_t *,size_t,const wchar_t *,va_list)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(49) : see previous definition of 'vswprintf' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(61) : error C2084: function 'int _swprintf_l(wchar_t *,size_t,const wchar_t *,_locale_t,...)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(60) : see previous definition of '_swprintf_l' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(74) : error C2084: function 'int _vswprintf_l(wchar_t *,size_t,const wchar_t *,_locale_t,va_list)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(73) : see previous definition of '_vswprintf_l' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(86) : error C2084: function 'int swprintf(wchar_t *,const wchar_t *,...)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(85) : see previous definition of 'swprintf' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(98) : error C2084: function 'int vswprintf(wchar_t *,const wchar_t *,va_list)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(97) : see previous definition of 'vswprintf' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(106) : error C2084: function 'int _swprintf_l(wchar_t *,const wchar_t *,_locale_t,...)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(105) : see previous definition of '_swprintf_l' c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(118) : error C2084: function 'int _vswprintf_l(wchar_t *,const wchar_t *,_locale_t,va_list)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\swprintf.inl(117) : see previous definition of '_vswprintf_l' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(572) : error C2995: 'errno_t _wtmpnam_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(572) : see declaration of '_wtmpnam_s' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(586) : error C2084: function 'wint_t getwchar(void)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(414) : see previous definition of 'getwchar' c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(588) : error C2084: function 'wint_t putwchar(wchar_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(416) : see previous definition of 'putwchar' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(68) : error C2995: 'errno_t _strset_s(char (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(68) : see declaration of '_strset_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : error C2995: 'errno_t strcpy_s(char (&)[_Size],const char *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(78) : error C2995: 'errno_t strcat_s(char (&)[_Size],const char *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(78) : see declaration of 'strcat_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(85) : error C2084: function 'size_t strnlen_s(const char *,size_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(84) : see previous definition of 'strnlen_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(125) : error C2995: 'errno_t _strerror_s(char (&)[_Size],const char *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(125) : see declaration of '_strerror_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(130) : error C2995: 'errno_t strerror_s(char (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(130) : see declaration of 'strerror_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(132) : error C2995: 'errno_t _strlwr_s(char (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(132) : see declaration of '_strlwr_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(135) : error C2995: 'errno_t _strlwr_s_l(char (&)[_Size],_locale_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(135) : see declaration of '_strlwr_s_l' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(140) : error C2995: 'errno_t strncat_s(char (&)[_Size],const char *,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(140) : see declaration of 'strncat_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(156) : error C2995: 'errno_t strncpy_s(char (&)[_Size],const char *,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(159) : error C2995: 'errno_t _strnset_s(char (&)[_Size],int,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(159) : see declaration of '_strnset_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(171) : error C2995: 'errno_t _strupr_s(char (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(171) : see declaration of '_strupr_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(174) : error C2995: 'errno_t _strupr_s_l(char (&)[_Size],_locale_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(174) : see declaration of '_strupr_s_l' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(184) : error C2084: function 'char *strchr(char *,int)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(183) : see previous definition of 'strchr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(186) : error C2084: function 'char *strpbrk(char *,const char *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(185) : see previous definition of 'strpbrk' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(188) : error C2084: function 'char *strrchr(char *,int)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(187) : see previous definition of 'strrchr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(190) : error C2084: function 'char *strstr(char *,const char *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(189) : see previous definition of 'strstr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(195) : error C2084: function 'void *memchr(void *,int,size_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(194) : see previous definition of 'memchr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(244) : error C2995: 'errno_t wcscat_s(wchar_t (&)[_Size],const wchar_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(244) : see declaration of 'wcscat_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(251) : error C2995: 'errno_t wcscpy_s(wchar_t (&)[_Size],const wchar_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(251) : see declaration of 'wcscpy_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(258) : error C2084: function 'size_t wcsnlen_s(const wchar_t *,size_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(257) : see previous definition of 'wcsnlen_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(265) : error C2995: 'errno_t wcsncat_s(wchar_t (&)[_Size],const wchar_t *,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(265) : see declaration of 'wcsncat_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(271) : error C2995: 'errno_t wcsncpy_s(wchar_t (&)[_Size],const wchar_t *,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(271) : see declaration of 'wcsncpy_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(281) : error C2995: 'errno_t _wcserror_s(wchar_t (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(281) : see declaration of '_wcserror_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(284) : error C2995: 'errno_t __wcserror_s(wchar_t (&)[_Size],const wchar_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(284) : see declaration of '__wcserror_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(291) : error C2995: 'errno_t _wcsnset_s(wchar_t (&)[_Size],wchar_t,size_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(291) : see declaration of '_wcsnset_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(295) : error C2995: 'errno_t _wcsset_s(wchar_t (&)[_Size],wchar_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(295) : see declaration of '_wcsset_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(299) : error C2995: 'errno_t _wcslwr_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(299) : see declaration of '_wcslwr_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(302) : error C2995: 'errno_t _wcslwr_s_l(wchar_t (&)[_Size],_locale_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(302) : see declaration of '_wcslwr_s_l' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(305) : error C2995: 'errno_t _wcsupr_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(305) : see declaration of '_wcsupr_s' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(308) : error C2995: 'errno_t _wcsupr_s_l(wchar_t (&)[_Size],_locale_t)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(308) : see declaration of '_wcsupr_s_l' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(326) : error C2084: function 'wchar_t *wcschr(wchar_t *,wchar_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(325) : see previous definition of 'wcschr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(328) : error C2084: function 'wchar_t *wcspbrk(wchar_t *,const wchar_t *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(327) : see previous definition of 'wcspbrk' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(330) : error C2084: function 'wchar_t *wcsrchr(wchar_t *,wchar_t)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(329) : see previous definition of 'wcsrchr' c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(332) : error C2084: function 'wchar_t *wcsstr(wchar_t *,const wchar_t *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(331) : see previous definition of 'wcsstr' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(94) : error C2011: '_wfinddata32_t' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(94) : see declaration of '_wfinddata32_t' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(105) : error C2011: '_wfinddata32i64_t' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(105) : see declaration of '_wfinddata32i64_t' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(114) : error C2011: '_wfinddata64i32_t' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(114) : see declaration of '_wfinddata64i32_t' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(123) : error C2011: '_wfinddata64_t' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(123) : see declaration of '_wfinddata64_t' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(272) : error C2059: syntax error : '(' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(273) : error C2059: syntax error : '(' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(274) : error C2059: syntax error : '(' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(275) : error C2059: syntax error : '(' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(323) : error C2995: 'errno_t _wmktemp_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(323) : see declaration of '_wmktemp_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(345) : error C2572: '_wopen' : redefinition of default parameter : parameter 3 c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(345) : see declaration of '_wopen' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(346) : error C2572: '_wsopen' : redefinition of default parameter : parameter 4 c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(346) : see declaration of '_wsopen' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(492) : error C2011: '_stat32' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(492) : see declaration of '_stat32' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(508) : error C2011: 'stat' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(508) : see declaration of 'stat' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(526) : error C2011: '_stat32i64' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(526) : see declaration of '_stat32i64' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(540) : error C2011: '_stat64i32' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(540) : see declaration of '_stat64i32' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(554) : error C2011: '_stat64' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(554) : see declaration of '_stat64' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(625) : error C2995: 'errno_t _cgetws_s(wchar_t (&)[_Size],size_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(625) : see declaration of '_cgetws_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(877) : error C2995: 'errno_t _itow_s(int,wchar_t (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(877) : see declaration of '_itow_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(880) : error C2995: 'errno_t _ltow_s(long,wchar_t (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(880) : see declaration of '_ltow_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(883) : error C2995: 'errno_t _ultow_s(unsigned long,wchar_t (&)[_Size],int)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(883) : see declaration of '_ultow_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(893) : error C2995: 'errno_t _wgetenv_s(size_t *,wchar_t (&)[_Size],const wchar_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(893) : see declaration of '_wgetenv_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(951) : error C2995: 'errno_t _wmakepath_s(wchar_t (&)[_Size],const wchar_t *,const wchar_t *,const wchar_t *,const wchar_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(951) : see declaration of '_wmakepath_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(960) : error C2995: 'errno_t _wsearchenv_s(const wchar_t *,const wchar_t *,wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(960) : see declaration of '_wsearchenv_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(968) : error C2995: 'errno_t _wsplitpath_s(const wchar_t *,wchar_t (&)[_DriveSize],wchar_t (&)[_DirSize],wchar_t (&)[_NameSize],wchar_t (&)[_ExtSize])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(968) : see declaration of '_wsplitpath_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1119) : error C2011: 'tm' : 'struct' type redefinition c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1119) : see declaration of 'tm' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1139) : error C2995: 'errno_t _wasctime_s(wchar_t (&)[_Size],const tm *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1139) : see declaration of '_wasctime_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1143) : error C2995: 'errno_t _wctime32_s(wchar_t (&)[_Size],const __time32_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1143) : see declaration of '_wctime32_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1149) : error C2995: 'errno_t _wstrdate_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1149) : see declaration of '_wstrdate_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1153) : error C2995: 'errno_t _wstrtime_s(wchar_t (&)[_Size])' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1153) : see declaration of '_wstrtime_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1159) : error C2995: 'errno_t _wctime64_s(wchar_t (&)[_Size],const __time64_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1159) : see declaration of '_wctime64_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wtime.inl(47) : error C2084: function 'wchar_t *_wctime(const time_t *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\wtime.inl(46) : see previous definition of '_wctime' c:\program files (x86)\microsoft visual studio 8\vc\include\wtime.inl(55) : error C2084: function 'errno_t _wctime_s(wchar_t *,size_t,const time_t *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\wtime.inl(54) : see previous definition of '_wctime_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1179) : error C2995: 'errno_t mbsrtowcs_s(size_t *,wchar_t (&)[_Size],const char **,size_t,mbstate_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1179) : see declaration of 'mbsrtowcs_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1184) : error C2995: 'errno_t wcrtomb_s(size_t *,char (&)[_Size],wchar_t,mbstate_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1184) : see declaration of 'wcrtomb_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1188) : error C2995: 'errno_t wcsrtombs_s(size_t *,char (&)[_Size],const wchar_t **,size_t,mbstate_t *)' : function template has already been defined c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1188) : see declaration of 'wcsrtombs_s' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1206) : error C2084: function 'int fwide(FILE *,int)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1205) : see previous definition of 'fwide' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1208) : error C2084: function 'int mbsinit(const mbstate_t *)' already has a body c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1207) : see previous definition of 'mbsinit' c:\program files (x86)\microsoft visual studio 8\vc\include\wchar.h(1208) : fatal error C1003: error count exceeds 100; stopping compilation Build log was saved at "file://c:\codeworks\build\ bin\server\win\Debug\obj\BuildLog.htm" Worker - 102 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks, Ram