Link error LNK2001  
Author Message
Ljudmilka





PostPosted: Mon Jan 03 10:51:11 CST 2005 Top

MFC >> Link error LNK2001

Hi,

I received the following link error when a MFC project is linked with
the non-MFC library. Does anyone know what could be causing this?

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetExpiration(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetSerialNum(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetSubjectName(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetIssuerName(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall GroupUser::GetExpiration(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall GroupUser::GetSerialNum(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall GroupUser::GetSubjectName(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall GroupUser::GetIssuerName(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetAdminGroup(bool)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual bool __thiscall GroupUser::IsAdminGroup(void)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetFriendlyName(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::SetFullPath(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class mylist<class GroupUser *> * __thiscall
GroupUser::GetChildList(void)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall GroupUser::WhatAmI(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall GroupUser::operator=(class GroupUser &)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual bool __thiscall GroupUser::operator<(class GroupUser &)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall SMGroup::operator=(class SMGroup &)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall SMGroup::SetAdminGroup(bool)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual bool __thiscall SMGroup::IsAdminGroup(void)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall SMGroup::SetFriendlyName(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall SMGroup::SetFullPath(class
std::basic_string<char,struct std::char_traits<char>,class


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class mylist<class GroupUser *> * __thiscall
SMGroup::GetChildList(void)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
virtual class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall SMGroup::WhatAmI(void)"


EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
__thiscall charstr::charstr(class charstr const &)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public: void
__thiscall charstr::operator=(class charstr const &)"

EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:


Visual Studio201  
 
 
Scott





PostPosted: Mon Jan 03 10:51:11 CST 2005 Top

MFC >> Link error LNK2001
> Hi,
>
> I received the following link error when a MFC project is linked with
> the non-MFC library. Does anyone know what could be causing this?
>
> EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
> virtual void __thiscall GroupUser::SetExpiration(class
> std::basic_string<char,struct std::char_traits<char>,class



Actually, the errors indicate you are not linked to the library. If you
have a .lib file for this library you need to add its name to the
project link settings - or add the .lib file to your project.

--
Scott McPhillips [VC++ MVP]

 
 
Ririko





PostPosted: Mon Jan 03 11:35:48 CST 2005 Top

MFC >> Link error LNK2001 Thank you!, your suggestion has solved the linking problem. However, now I
received the following compile error. What could be causing this.

fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information







> > Hi,
> >
> > I received the following link error when a MFC project is linked
with
> > the non-MFC library. Does anyone know what could be causing this?
> >
> > EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
> > virtual void __thiscall GroupUser::SetExpiration(class
> > std::basic_string<char,struct std::char_traits<char>,class


>
> Actually, the errors indicate you are not linked to the library. If you
> have a .lib file for this library you need to add its name to the
> project link settings - or add the .lib file to your project.
>
> --
> Scott McPhillips [VC++ MVP]
>


 
 
Nikola





PostPosted: Wed Jan 05 18:46:19 CST 2005 Top

MFC >> Link error LNK2001 What version of the compiler are you using? Can you prepare a small repro
case for this issue?

Thanks,
Nikola

--
Nikola Dudar
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.





> Thank you!, your suggestion has solved the linking problem. However, now I
> received the following compile error. What could be causing this.
>
> fatal error C1001: INTERNAL COMPILER ERROR
> (compiler file 'msc1.cpp', line 1794)
> Please choose the Technical Support command on the Visual C++
> Help menu, or open the Technical Support help file for more
> information
>
>
>
>



>> > Hi,
>> >
>> > I received the following link error when a MFC project is linked
> with
>> > the non-MFC library. Does anyone know what could be causing this?
>> >
>> > EnhanceFiles.obj : error LNK2001: unresolved external symbol "public:
>> > virtual void __thiscall GroupUser::SetExpiration(class
>> > std::basic_string<char,struct std::char_traits<char>,class


>>
>> Actually, the errors indicate you are not linked to the library. If you
>> have a .lib file for this library you need to add its name to the
>> project link settings - or add the .lib file to your project.
>>
>> --
>> Scott McPhillips [VC++ MVP]
>>
>
>