Slovek

Hey people,

im trying to get an old EVC++ to Visual Studio, fixed the /MDd problem and the W_Char problem. but when i try to compile i get over 300 linker errors. ive got the idea im missing lib files or something, but i added the old lib directory's and stil i cant get it going.

Linking...

RTCView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

stateview.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

Tablog.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

tempview.obj : error LNK2019: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z) referenced in function __unwind$85916

FaultLog.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

infoView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

InputView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertColumn(int,unsigned short const *,int,int,int)" ( InsertColumn@CListCtrl@@QAAHHPBGHHH@Z)

stateview.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

Tablog.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

tempview.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

outputView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

ParameterDCU.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

Program DCU.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

RTCView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

activefaults.obj : error LNK2019: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z) referenced in function "public: void __cdecl ErrorView::checkFaults(void)" ( checkFaults@ErrorView@@QAAXXZ)

FaultLog.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

infoView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

InputView.obj : error LNK2001: unresolved external symbol "public: int __cdecl CListCtrl::InsertItem(unsigned int,int,unsigned short const *,unsigned int,unsigned int,int,long)" ( InsertItem@CListCtrl@@QAAHIHPBGIIHJ@Z)

substring.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsOS<unsigned short> > >::~CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsOS<unsigned short> > >(void)" (__imp_ 1 $CStringT@GV $StrTraitMFC_DLL@GV $ChTraitsOS@G@ATL@@@@@ATL@@QAA@XZ)

I think were getting the idea, i didnt post all my link errors because it would fill a page :)
Is there anyone who can help me fix this problem



Re: Visual C++ Language Linker problems LNK2001

Simple Samples

Look in the documentation for the description of LNK2001. If that does not help, search this forum for LNK2001. There is at least one question a day asking about LNK2001. It is easy to determine that external symbols such as "CListCtrl::InsertColumn" were not found by the linker.

Obviously your program uses MFC. Your project however does not specify use of MFC. In the project properties, in the "Configuration Properties" is "Use of MFC".






Re: Visual C++ Language Linker problems LNK2001

Slovek

Well thats the problem, i already set MFC to be used, dynamic aswell as static, both didnt have any effect

I also try'd creating a completely new project and add all the cpp and h files, but again i get linker problems, i have try'd almost every option there is in Visual Studio, adding MFC directory's, adding a bunch of .libs but I keep getting the linker errors....





Re: Visual C++ Language Linker problems LNK2001

Simple Samples

As far as I can think and as far as I know, there must be something unusual for you.

What happens when you create a new MFC project and build it immediately; that is, without any modifications






Re: Visual C++ Language Linker problems LNK2001

Slovek

I started a new thread on this (sorry for this), i had the same post on multiple forums and i found that i wasnt verry clear on my startpost because i got a lot of mixed up messages.

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1231308&SiteID=1

as for (Simple Samples):
I already try'd building a new MFC project and that will build, but as soon a i start using the same functions i had before(CListCtrl::InsertColumn) . I get linker errors again.





Re: Visual C++ Language Linker problems LNK2001

Simple Samples

 Slovek wrote:

I started a new thread on this (sorry for this), i had the same post on multiple forums and i found that i wasnt verry clear on my startpost because i got a lot of mixed up messages.

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1231308&SiteID=1

I suppose that starting a new thread is not as much of a problem as long as you post a link (as you did here) to the new thread.