Regular Expression Dll

Hi,
I made a VC6 application which uses VC6 Regular Expressions libraries, and I am now trying to convert it to VC2012. I corrected some compiler errors, and it can be compiled successfully now in VC 2012. The problem is with the linker, since I get the below errors, they all seem related to the RegularExpressionComponentLibVc6d.lib library, can someone help me solve the problem?
Thanks in advance.
Mino

1>------ Rebuild All started: Project: Marchi, Configuration: Debug Win32 ------
1> StdAfx.cpp
1> SplashWnd.cpp
1> RegExpr.cpp
1> MarchiDlg.cpp
1> Marchi.cpp
1> Generating Code...
1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1137,5): warning
MSB8012: TargetPath(C:\marchi\.\Debug\Marchi.exe) does not match the Linker's
OutputFile property value (C:\marchi\bin\Marchi2016.exe). This may cause your
project to build incorrectly. To correct this, please make sure that $(OutDir),
$(TargetName) and $(TargetExt) property values match the value specified in
%(Link.OutputFile).
1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1139,5): warning
MSB8012: TargetName(Marchi) does not match the Linker's OutputFile property value
(Marchi2016). This may cause your project to build incorrectly. To correct this,
please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values
match the value specified in %(Link.OutputFile).
1>Marchi.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH'
specification
1>RegularExpressionComponentLibVc6d.lib(RegularExpression.obj) : error LNK2026:
module unsafe for SAFESEH image.
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionPimpl.obj) : error LNK2005:
"public: __thiscall std::bad_cast::bad_cast(char const *)"
(??0bad_cast@std@@QAE@PBD@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionPimpl.obj) : error LNK2005:
"public: virtual __thiscall std::bad_cast::~bad_cast(void)"
(??1bad_cast@std@@UAE@XZ) already defined in libcmtd.lib(stdexcpt.obj)
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionPimpl.obj) : error LNK2005:
"public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)"
(??0bad_cast@std@@QAE@ABV01@@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionPimpl.obj) : error LNK2026:
module unsafe for SAFESEH image.
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionMessages.obj) : error
LNK2026: module unsafe for SAFESEH image.
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionTLSSlot.obj) : error
LNK2026: module unsafe for SAFESEH image.
1>RegularExpressionComponentLibVc6d.lib(RegularExpressionTLS.obj) : error LNK2026:
module unsafe for SAFESEH image.
1>tsere300_vc6_mssd.lib(cpp_regex_traits.obj) : error LNK2005: "public: __thiscall
std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) already defined
in libcmtd.lib(stdexcpt.obj)
1>tsere300_vc6_mssd.lib(cpp_regex_traits.obj) : error LNK2005: "public: virtual
__thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) already defined
in libcmtd.lib(stdexcpt.obj)
1>tsere300_vc6_mssd.lib(cpp_regex_traits.obj) : error LNK2005: "public: __thiscall
std::bad_cast::bad_cast(class std::bad_cast const &)"
(??0bad_cast@std@@QAE@ABV01@@Z) already defined in libcmtd.lib(stdexcpt.obj)
1>tsere300_vc6_mssd.lib(cpp_regex_traits.obj) : error LNK2026: module unsafe for
SAFESEH image.
1>tsere300_vc6_mssd.lib(w32_regex_traits.obj) : error LNK2026: module unsafe for
SAFESEH image.
1>tsere300_vc6_mssd.lib(regex.obj) : error LNK2026: module unsafe for SAFESEH image.
1>tsere300_vc6_mssd.lib(cregex.obj) : error LNK2026: module unsafe for SAFESEH image.
1>tsere300_vc6_mssd.lib(instances.obj) : error LNK2026: module unsafe for SAFESEH
image.
1>tsere300_vc6_mssd.lib(c_regex_traits.obj) : error LNK2026: module unsafe for
SAFESEH image.
1>tsere300_vc6_mssd.lib(c_regex_traits_common.obj) : error LNK2026: module unsafe
for SAFESEH image.
1>tsere300_vc6_mssd.lib(regex_synch.obj) : error LNK2026: module unsafe for SAFESEH
image.
1>tsere300_vc6_mssd.lib(winstances.obj) : error LNK2026: module unsafe for SAFESEH
image.
1>tsere300_vc6_mssd.lib(fileiter.obj) : error LNK2026: module unsafe for SAFESEH image.
1>bin/Marchi2016.exe : fatal error LNK1281: Unable to generate SAFESEH image.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Topic archived. No new replies allowed.