On Tue, 17 Sep 2002 12:40:53 -0400, Douglas Gregor
wrote:
Could you copy 'n' paste some of the link errors you are getting? It seems
like you did the right thing (at least, I don't know of a better way), but
perhaps knowing what symbols are being redefined would help isolate the
problem.
I sure can. The following is the compile output:
--------------------Configuration: TestFs - Win32
Debug--------------------
Compiling...
Main.cpp
Linking...
LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE
specification
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::basic_string::~basic_string(void)"
(??1?$basic_str
ing@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already
defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::basic_string::basic_string(char const *,class
std:
:allocator<char> const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z) already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: char const *
__thiscall std::basic_string::c_str(void)const "
(?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@QBEPBDXZ) already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: unsigned int
__thiscall std::basic_string::size(void)const "
(?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q
BEIXZ) already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: virtual
__thiscall std::runtime_error::~runtime_error(void)"
(??1runtime_error@std@@UAE@XZ) already defined in libcpd.lib(ios.obj);
second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::basic_string::basic_string(class
std::basic_string
const
&)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
already defined in libcpd.lib(ios.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::runtime_error::runtime_error(class std::runtime_error const &)"
(??0runtime_error@std@@QAE@ABV01@@Z) already defined in
libcpd.lib(ios.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::basic_string::basic_string(class
std::allocator<ch
ar> const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z)
already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: class
std::basic_string & __thiscall std::basic_string::operator=(
class std::basic_string const &)"
(??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: class
std::basic_string & __thiscall std::basic_string::operator+=
(char)"
(??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z)
already defined in libcpd.lib(locale.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: class
std::basic_string & __thiscall std::basic_string::operator=(
char const *)"
(??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z)
already defined in libcpd.lib(locale0.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::basic_string::basic_string(char const
*,unsigned i
nt,class std::allocator<char> const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDIABV?$allocator@D@1@@Z)
already defined in libcpd.lib(xlocale.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: class
std::basic_string & __thiscall std::basic_string::operator+=
(class std::basic_string const &)"
(??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z)
already defined in libcpd.lib(locale.obj); second definition ignor
ed
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: char *
__thiscall std::basic_string::begin(void)"
(?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEPADXZ)
a
lready defined in libcpd.lib(iostream.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: char *
__thiscall std::basic_string::end(void)"
(?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEPADXZ)
alrea
dy defined in libcpd.lib(iostream.obj); second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: class
std::basic_string & __thiscall std::basic_string::erase(unsi
gned int,unsigned int)"
(?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z)
already defined in Main.obj; second definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::runtime_error::runtime_error(class std::basic_string const &)"
(??0runtime_error@std@@QAE@ABV?$basic_string@DU?$ch
ar_traits@D@std@@V?$allocator@D@2@@1@@Z) already defined in
libcpd.lib(ios.obj); second definition ignored
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of
other libs; use /NODEFAULTLIB:library
Debug/TestFs.exe : warning LNK4088: image being generated due to
/FORCE option; image may not run
TestFs.exe - 0 error(s), 20 warning(s)