Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Template specialization Pin
progDes26-Jul-07 2:53
progDes26-Jul-07 2:53 
AnswerRe: Template specialization Pin
Nelek26-Jul-07 20:57
protectorNelek26-Jul-07 20:57 
GeneralRe: Template specialization Pin
Russell'29-Jul-07 22:09
Russell'29-Jul-07 22:09 
QuestionClosing MainFrame window Pin
Anu_Bala25-Jul-07 23:38
Anu_Bala25-Jul-07 23:38 
AnswerRe: Closing MainFrame window Pin
Roger Broomfield26-Jul-07 0:09
Roger Broomfield26-Jul-07 0:09 
AnswerRe: Closing MainFrame window Pin
Mark Salsbery26-Jul-07 5:40
Mark Salsbery26-Jul-07 5:40 
AnswerRe: Closing MainFrame window Pin
Nelek26-Jul-07 21:04
protectorNelek26-Jul-07 21:04 
Questionerror LNK2005: std::basic_string Pin
Mohammed Asif Palimar25-Jul-07 23:23
Mohammed Asif Palimar25-Jul-07 23:23 
Hi,

I have MFC code written on VC6 platform.Now im trying to build the same code in VS2005 platform.Im getting following linking error.

Error 1 error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in MyCtrl.obj MY_FileIO.lib

Where MyCtrl.cpp is in the application project and MY_FileIO is a project for DLL used by application.

Whats the cause and whats the solution for the same?
AnswerRe: error LNK2005: std::basic_string Pin
mandanani25-Jul-07 23:30
mandanani25-Jul-07 23:30 
AnswerRe: error LNK2005: std::basic_string Pin
Cedric Moonen25-Jul-07 23:39
Cedric Moonen25-Jul-07 23:39 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar25-Jul-07 23:48
Mohammed Asif Palimar25-Jul-07 23:48 
AnswerRe: error LNK2005: std::basic_string Pin
Russell'26-Jul-07 0:13
Russell'26-Jul-07 0:13 
GeneralRe: error LNK2005: std::basic_string Pin
Russell'26-Jul-07 0:46
Russell'26-Jul-07 0:46 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar26-Jul-07 0:54
Mohammed Asif Palimar26-Jul-07 0:54 
GeneralRe: error LNK2005: std::basic_string Pin
Mohammed Asif Palimar26-Jul-07 0:50
Mohammed Asif Palimar26-Jul-07 0:50 
QuestionHANDLE and FILE* Pin
George_George25-Jul-07 23:20
George_George25-Jul-07 23:20 
AnswerRe: HANDLE and FILE* Pin
Jonathan [Darka]25-Jul-07 23:30
professionalJonathan [Darka]25-Jul-07 23:30 
Answeror... Pin
CPallini25-Jul-07 23:43
mveCPallini25-Jul-07 23:43 
AnswerRe: HANDLE and FILE* Pin
Viorel.26-Jul-07 2:07
Viorel.26-Jul-07 2:07 
GeneralRe: HANDLE and FILE* Pin
CPallini26-Jul-07 2:29
mveCPallini26-Jul-07 2:29 
QuestionPre-Requisite Pin
Mahesh Kulkarni25-Jul-07 23:12
Mahesh Kulkarni25-Jul-07 23:12 
AnswerRe: Pre-Requisite Pin
Mark Salsbery26-Jul-07 5:57
Mark Salsbery26-Jul-07 5:57 
GeneralRe: Pre-Requisite Pin
Mahesh Kulkarni27-Jul-07 2:05
Mahesh Kulkarni27-Jul-07 2:05 
GeneralRe: Pre-Requisite Pin
Mark Salsbery27-Jul-07 5:06
Mark Salsbery27-Jul-07 5:06 
QuestionHow to restore the bitmap used by CImageList::Add Pin
Nishad S25-Jul-07 22:30
Nishad S25-Jul-07 22:30 

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.