2 Errors during Linking (0.263)

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
BugsByte
Posts: 4
Joined: 2003-07-11 05:38
Contact:

2 Errors during Linking (0.263)

Post by BugsByte » 2003-10-16 06:52

I downloaded DC++ 0.263 source code.
I install Microsoft Visual C++ 6.0
I install Microsoft SDK Update February 2003 (5.2.3790.0)
I register PSDK Directories with Visual Studio
I put the directory "DCPlusPlus-wtl7.0-src" in Tools/Options/Directories/Included Files at the end.
I put the directory"stlport-4.5.3-dcpp/stlport" in first in the same list

This is my Included files list:
D:\DC\STLPORT-4.5.3-DCPP\STLPORT
C:\Program Files\Microsoft SDK\include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
D:\DC\DCPLUSPLUS-WTL7.0-SRC

I've got replace:
static const size_t bucket_size = 4;
static const size_t min_buckets = 8;
by
#if _MSC_VER == 1200
enum {bucket_size = 4};
enum {min_buckets = 8};
#else
static const size_t bucket_size = 4;
static const size_t min_buckets = 8;
#endif // _MSC_VER == 1200
I look this in the forum (http://dcplusplus.sourceforge.net/forum ... php?t=5528)

But I've got already some errors when I compile:

Generating Code...
Linking...
MainFrm.obj : error LNK2001: unresolved external symbol "public: long __thiscall TextFrame::OnCreate(unsigned int,unsigned int,long,int &)" (?OnCreate@TextFrame@@QAEJIIJAAH@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: void __thiscall TextFrame::UpdateLayout(int)" (?UpdateLayout@TextFrame@@QAEXH@Z)
App/DCPlusPlus.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

DCPlusPlus.exe - 3 error(s), 16 warning(s)

Can't you help me, please.
I'm novice

PS : Sorry for my Enghish : I'm french and I don't speak english very well

Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-10-16 10:19

Try to add the TextFrame.cpp/.h to the DCPlusplus project. Clean and rebuild the DCplusplus solution.

BugsByte
Posts: 4
Joined: 2003-07-11 05:38
Contact:

Post by BugsByte » 2003-10-20 06:05

It's ok.

I can compile the project now.
Thanks a lot.

Locked