Click here to Skip to main content
15,904,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ NOISE problem Pin
Iain Clarke, Warrior Programmer28-Jan-08 5:34
Iain Clarke, Warrior Programmer28-Jan-08 5:34 
GeneralRe: GDI+ NOISE problem Pin
followait28-Jan-08 5:46
followait28-Jan-08 5:46 
GeneralQuestion regarding exported C++ symbols/objects Pin
Lea Hayes28-Jan-08 4:24
Lea Hayes28-Jan-08 4:24 
GeneralSmart Card Service Problem Pin
Federico Milano28-Jan-08 2:28
Federico Milano28-Jan-08 2:28 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 3:25
Maxwell Chen28-Jan-08 3:25 
GeneralRe: Smart Card Service Problem Pin
Federico Milano28-Jan-08 3:39
Federico Milano28-Jan-08 3:39 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 4:13
Maxwell Chen28-Jan-08 4:13 
GeneralLinker Error 2005 Pin
quastman28-Jan-08 1:29
quastman28-Jan-08 1:29 
Hi,

while compiling an old VC6 project to VC2005 (and also upgrading to the latest Ultimate Grid Version), I got the following messages:

1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetDefaultInfo(void)" (?SetDefaultInfo@CUGCell@@QAEHXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::AddCellInfo(class CUGCell *,class CUGCell *)" (?AddCellInfo@CUGCell@@QAEHPAV1@0@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetText(char const *)" (?SetText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::AppendText(char const *)" (?AppendText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetTextLength(void)" (?GetTextLength@CUGCell@@QAEHXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetMask(char const *)" (?SetMask@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetMask(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > *)" (?GetMask@CUGCell@@QAEHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: char const * __thiscall CUGCell::GetMask(void)" (?GetMask@CUGCell@@QAEPBDXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetLabelText(char const *)" (?SetLabelText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetLabelText(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > *)" (?GetLabelText@CUGCell@@QAEHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: char const * __thiscall CUGCell::GetLabelText(void)" (?GetLabelText@CUGCell@@QAEPBDXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetBool(int)" (?SetBool@CUGCell@@QAEHH@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetNumber(double)" (?SetNumber@CUGCell@@QAEHN@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetNumberDecimals(int)" (?SetNumberDecimals@CUGCell@@QAEHH@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetNumberDecimals(void)" (?GetNumberDecimals@CUGCell@@QAEHXZ) is already defined in UGCell.obj.

(.. and another 661 lines!)

I added '#include "uglibsel.h" ' to my stdafx.h , and also created the ugdndm.lib (and udrndm.lib for release versions).
It looks like that I have defined them twice, but where?

Any help is appreciated.


quastman
QuestionRe: Linker Error 2005 Pin
CPallini28-Jan-08 1:50
mveCPallini28-Jan-08 1:50 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 2:19
quastman28-Jan-08 2:19 
GeneralRe: Linker Error 2005 Pin
CPallini28-Jan-08 2:32
mveCPallini28-Jan-08 2:32 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 3:10
quastman28-Jan-08 3:10 
GeneralOUT Of MEMORY exception handling. Pin
Le@rner28-Jan-08 1:10
Le@rner28-Jan-08 1:10 
QuestionRe: OUT Of MEMORY exception handling. Pin
CPallini28-Jan-08 1:54
mveCPallini28-Jan-08 1:54 
GeneralRe: OUT Of MEMORY exception handling. Pin
Iain Clarke, Warrior Programmer28-Jan-08 2:29
Iain Clarke, Warrior Programmer28-Jan-08 2:29 
GeneralRe: OUT Of MEMORY exception handling. Pin
CPallini28-Jan-08 2:44
mveCPallini28-Jan-08 2:44 
Generalread document file Pin
Paulraj G27-Jan-08 23:53
Paulraj G27-Jan-08 23:53 
GeneralRe: read document file Pin
Iain Clarke, Warrior Programmer28-Jan-08 0:12
Iain Clarke, Warrior Programmer28-Jan-08 0:12 
GeneralRe: read document file Pin
Paulraj G28-Jan-08 0:32
Paulraj G28-Jan-08 0:32 
GeneralRe: read document file Pin
Iain Clarke, Warrior Programmer28-Jan-08 0:41
Iain Clarke, Warrior Programmer28-Jan-08 0:41 
GeneralRe: read document file Pin
Paulraj G28-Jan-08 0:58
Paulraj G28-Jan-08 0:58 
GeneralRe: read document file Pin
Cedric Moonen28-Jan-08 1:21
Cedric Moonen28-Jan-08 1:21 
GeneralRe: read document file Pin
CPallini28-Jan-08 2:06
mveCPallini28-Jan-08 2:06 
GeneralRe: read document file Pin
CPallini28-Jan-08 0:45
mveCPallini28-Jan-08 0:45 
JokeRe: read document file Pin
Rajesh R Subramanian28-Jan-08 1:15
professionalRajesh R Subramanian28-Jan-08 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.