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

C / C++ / MFC

 
AnswerRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson28-Apr-09 5:45
professionalStuart Dootson28-Apr-09 5:45 
Wow - you've already done a lot more investigation than most people who ask questions here Smile | :)

What can I suggest....

1. I notice that some of your libs use "/Od" and others don't and others use "/Ox". This will affect how methods of template classes (like std::basic_string) are inlined in your libraries - it's possible (I think) that a std::basic_string method may be embedded in an object file and then re-exported from a library?

2. I'd be tempted to use dumpbin (it comes with VS) or objdump (comes with GCC, if you have that installed) to dump various properties of the lib files (use dumpbin /all library-name) and then search through the resultant text for names of basic_string methods that look like they're defined rather than referenced?

3. Or maybe delete lib4, then add object files back into lib4 one by one, to see when the LNK2005 occurs?

So - no concrete answers, just possibilities Frown | :-(

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit28-Apr-09 7:52
SkysTheLimit28-Apr-09 7:52 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson28-Apr-09 8:37
professionalStuart Dootson28-Apr-09 8:37 
GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit28-Apr-09 8:46
SkysTheLimit28-Apr-09 8:46 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson28-Apr-09 8:48
professionalStuart Dootson28-Apr-09 8:48 
GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit28-Apr-09 8:52
SkysTheLimit28-Apr-09 8:52 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson28-Apr-09 9:15
professionalStuart Dootson28-Apr-09 9:15 
GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit28-Apr-09 9:22
SkysTheLimit28-Apr-09 9:22 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson28-Apr-09 10:52
professionalStuart Dootson28-Apr-09 10:52 
GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit29-Apr-09 7:40
SkysTheLimit29-Apr-09 7:40 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson29-Apr-09 8:41
professionalStuart Dootson29-Apr-09 8:41 
GeneralRe: LNK2005 Error: basic_string already defined Pin
SkysTheLimit29-Apr-09 10:28
SkysTheLimit29-Apr-09 10:28 
GeneralRe: LNK2005 Error: basic_string already defined Pin
Stuart Dootson29-Apr-09 10:40
professionalStuart Dootson29-Apr-09 10:40 
QuestionGetScreenResolution Pin
p_196028-Apr-09 4:22
p_196028-Apr-09 4:22 
AnswerRe: GetScreenResolution Pin
led mike28-Apr-09 4:31
led mike28-Apr-09 4:31 
Questionwhat's the average cpu tick counts for a CView's WM_PAINT handler? Pin
flyingxu28-Apr-09 4:17
flyingxu28-Apr-09 4:17 
AnswerRe: what's the average cpu tick counts for a CView's WM_PAINT handler? Pin
led mike28-Apr-09 4:28
led mike28-Apr-09 4:28 
QuestionHow to limit size of edit box Pin
amitovoip28-Apr-09 3:55
amitovoip28-Apr-09 3:55 
QuestionRe: How to limit size of edit box Pin
David Crow28-Apr-09 4:34
David Crow28-Apr-09 4:34 
QuestionSQL & c++ Pin
komofilms7728-Apr-09 2:57
komofilms7728-Apr-09 2:57 
QuestionRe: SQL & c++ Pin
David Crow28-Apr-09 3:06
David Crow28-Apr-09 3:06 
AnswerMaybe an example can help? Pin
gerens28-Apr-09 3:29
gerens28-Apr-09 3:29 
GeneralRe: Maybe an example can help? Pin
komofilms7728-Apr-09 19:41
komofilms7728-Apr-09 19:41 
Questioncorrect way to copy bstr ? Pin
Mogaambo28-Apr-09 1:44
Mogaambo28-Apr-09 1:44 
AnswerRe: correct way to copy bstr ? Pin
_AnsHUMAN_ 28-Apr-09 1:55
_AnsHUMAN_ 28-Apr-09 1:55 

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.