I am getting following errors when Visual C++ comes to link step. The
program
used to compile, I recently switched to Oracle8 libraries and also to
new OTL used
by our application. Since then I have not been able to get the
successful linking.
YOUR HELP IN THIS MATTER WILL BE REALLY APPRECIATED. You can reply
to shai...@visto.com
Here is the text returned by Visual C++
Linking...
EProcs3.obj : error LNK2001: unresolved external symbol "public: class
CString
const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
PaymentFile.obj : error LNK2001: unresolved external symbol "public:
class
CString const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
consumer.obj : error LNK2001: unresolved external symbol "public: class
CString
const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
EOBProcessor.obj : error LNK2001: unresolved external symbol "public:
class
CString const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
EProcs1.obj : error LNK2001: unresolved external symbol "public: class
CString
const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
EProcs2.obj : error LNK2001: unresolved external symbol "public: class
CString
const & __thiscall CString::operator=(char *)"
(??4CString@@QAEABV0@PAD@Z)
EProcs2.obj : error LNK2001: unresolved external symbol "public:
__thiscall
CString::CString(char *)" (??0CString@@QAE@PAD@Z) EProcs3.obj : error
LNK2001: unresolved external symbol "public: __thiscall
CString::CString(char *)"
(??0CString@@QAE@PAD@Z) PaymentFile.obj : error LNK2001: unresolved
external symbol "public: __thiscall CString::CString(char *)"
(??0CString@@QAE@PAD@Z) consumer.obj : error LNK2001: unresolved
external
symbol "public: __thiscall CString::CString(char *)"
(??0CString@@QAE@PAD@Z) ElectronicFile.obj : error LNK2001: unresolved
external symbol "public: __thiscall CString::CString(char *)"
(??0CString@@QAE@PAD@Z) EOBProcessor.obj : error LNK2001: unresolved
external symbol "public: __thiscall CString::CString(char *)"
(??0CString@@QAE@PAD@Z) EProcs1.obj : error LNK2001: unresolved
external
symbol "public: __thiscall CString::CString(char *)"
(??0CString@@QAE@PAD@Z) EProcs2.obj : error LNK2001: unresolved
external
symbol "char * _afxPchNil" (?_afxPchNil@@3PADA)
EProcs3.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
PaymentFile.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
consumer.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
ElectronicFile.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
EOBProcessor.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
EProcs1.obj : error LNK2001: unresolved external symbol "char *
_afxPchNil"
(?_afxPchNil@@3PADA)
ElectronicFile.obj : error LNK2001: unresolved external symbol "public:
class
CString const & __thiscall CString::operator+=(char *)"
(??YCString@@QAEABV0@PAD@Z)
EProcs3.obj : error LNK2001: unresolved external symbol "public: void
__cdecl
CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ)
PaymentFile.obj :
error LNK2001: unresolved external symbol "public: void __cdecl
CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ)
ElectronicFile.obj
: error LNK2001: unresolved external symbol "public: void __cdecl
CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ)
EOBProcessor.obj : error LNK2001: unresolved external symbol "public:
void
__cdecl CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ)
EProcs1.obj : error LNK2001: unresolved external symbol "public: void
__cdecl
CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ) EProcs2.obj :
error LNK2001: unresolved external symbol "public: void __cdecl
CString::Format(char *,...)" (?Format@CString@@QAAXPADZZ)
EOBProcessor.obj : error LNK2001: unresolved external symbol "class
CString
__stdcall operator+(char *,class CString const &)"
(??H@YG?AVCString@@PADABV0@@Z)
EProcs3.obj : error LNK2001: unresolved external symbol "class CString
__stdcall
operator+(char *,class CString const &)"
(??H@YG?AVCString@@PADABV0@@Z)
PaymentFile.obj : error LNK2001: unresolved external symbol "class
CString
__stdcall operator+(char *,class CString const &)"
(??H@YG?AVCString@@PADABV0@@Z)
EOBProcessor.obj : error LNK2001: unresolved external symbol "class
CString
__stdcall operator+(class CString const &,char *)"
(??H@YG?AVCString@@ABV0@PAD@Z)
EProcs3.obj : error LNK2001: unresolved external symbol "class CString
__stdcall
operator+(class CString const &,char *)"
(??H@YG?AVCString@@ABV0@PAD@Z)
Release/Electronic.exe : fatal error LNK1120: 7 unresolved externals
Error
executing link.exe.
Electronic.exe - 33 error(s), 0 warning(s)
Sent via Deja.com http://www.deja.com/
Before you buy.
What is OTL?
If you're using CString, you still need to link with the appropriate MFC
libraries. Assuming VC6 (might also hold in VC5), Project / Settings,
"General" tab, MFC dropdown, specify static or dynamic library. You might
also need to make sure that your precompiled headers settings are still
correct (C/C++ tab). stdafx.cpp should be set to "Create precompiled header
file"; everything else should be "Use precompiled header file"
HTH
--
Aaron
--------------------------------------
Aaron J Margosis
aaro...@erols.com
Please send replies only to the newsgroup(s). More people are available to
answer the questions, and more people benefit from the responses. Thanks.
<shai...@my-deja.com> wrote in message news:8ekp4q$u0t$1...@nnrp1.deja.com...