...already defined in QueueFrame.obj...

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

Moderator: Moderators

Locked
norti
Posts: 34
Joined: 2003-10-22 14:42
Location: Hungary
Contact:

...already defined in QueueFrame.obj...

Post by norti » 2004-01-18 14:09

I've tried to place the search for alternates command in the transfer window with following linking results:

Code: Select all

Compiling resources...
Linking...
TransferView.obj : error LNK2005: "private: void __thiscall QueueFrame::moveSelected(void)" (?moveSelected@QueueFrame@@AAEXXZ) already defined in QueueFrame.obj
TransferView.obj : error LNK2005: "public: long __thiscall QueueFrame::onSearchAlternates(unsigned short,unsigned short,struct HWND__ *,int &)" (?onSearchAlternates@QueueFrame@@QAEJGGPAUHWND__@@AAH@Z) already defined in QueueFrame.obj
main.obj : error LNK2019: unresolved external symbol "public: long __thiscall TransferView::onSearchAlternates(unsigned short,unsigned short,struct HWND__ *,int &)" (?onSearchAlternates@TransferView@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall TransferView::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@TransferView@@UAEHPAUHWND__@@IIJAAJK@Z)
TransferView.obj : error LNK2001: unresolved external symbol "public: long __thiscall TransferView::onSearchAlternates(unsigned short,unsigned short,struct HWND__ *,int &)" (?onSearchAlternates@TransferView@@QAEJGGPAUHWND__@@AAH@Z)
./Compiled/nextdcpp.exe : fatal error LNK1120: 1 unresolved externals
What can be wrong and how can I correct this?
.: Norti :.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-01-19 20:27

How did you place it in there?

Posting a unified diff of the two files (QueueFrame and TransferView) would help.

It looks like you kept a "QueueFrame::" in a class in TransferView, instead of putting it in the TransferView class.

norti
Posts: 34
Joined: 2003-10-22 14:42
Location: Hungary
Contact:

Post by norti » 2004-01-20 14:27

Yes, that was the first problem.

But after correcting :?: this I got more errors... I thought it would be easier :(

I think I'll leave this for the real programmers :)
.: Norti :.

Locked