Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Pin
Sakhalean21-May-10 2:41
Sakhalean21-May-10 2:41 
GeneralRe: CListCtrl Pin
josda100021-May-10 3:36
josda100021-May-10 3:36 
GeneralRe: CListCtrl Pin
josda100021-May-10 3:41
josda100021-May-10 3:41 
AnswerRe: CListCtrl Pin
David Crow20-May-10 9:54
David Crow20-May-10 9:54 
GeneralRe: CListCtrl Pin
josda100020-May-10 10:09
josda100020-May-10 10:09 
GeneralRe: CListCtrl Pin
David Crow20-May-10 10:27
David Crow20-May-10 10:27 
GeneralRe: CListCtrl Pin
josda100020-May-10 10:37
josda100020-May-10 10:37 
QuestionLinker Error Pin
john563220-May-10 2:20
john563220-May-10 2:20 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 2:43
Chris Meech20-May-10 2:43 
AnswerRe: Linker Error Pin
john563220-May-10 2:46
john563220-May-10 2:46 
GeneralRe: Linker Error Pin
Chris Meech20-May-10 2:58
Chris Meech20-May-10 2:58 
GeneralRe: Linker Error Pin
john563220-May-10 3:09
john563220-May-10 3:09 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:12
Chris Meech20-May-10 3:12 
AnswerRe: Linker Error Pin
john563220-May-10 3:14
john563220-May-10 3:14 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:26
Aescleal20-May-10 3:26 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:31
Chris Meech20-May-10 3:31 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:19
Aescleal20-May-10 3:19 
Whenever you get a linker error of this type, whinging that something has already been defined in a library starting with MSVC, it's almost certainly because you're trying to link two or more object files that have been compiled for different versions of the C++ runtime library. Generally most people ship their libraries to link with the release multi-threaded DLL version of the library, but this isn't exclusively true.

So what can you do about it?

If you have the library source change the compiler settings of the library to match your application. If you haven't got the source then change the compiler settings of your application to match the library - the author should have documented it somewhere.

To find the setting you need to fiddle select the project then dig through the project->properties->configuration properties->C++->code generation and look for "Runtime library."

Whatever you do unless you really know what you're up to, don't try linking against different versions of the library, all sorts of things can go horribly wrong in strange and interesting ways.

Cheers,

Ash
GeneralRe: Linker Error Pin
john563220-May-10 3:41
john563220-May-10 3:41 
QuestionNot getting Excel::_ApplicationPtr from WindowsPtr. Pin
KTTransfer20-May-10 2:08
KTTransfer20-May-10 2:08 
QuestionTough one: modify screen contents on the fly Pin
y.a.k20-May-10 0:50
y.a.k20-May-10 0:50 
AnswerRe: Tough one: modify screen contents on the fly Pin
CPallini20-May-10 1:47
mveCPallini20-May-10 1:47 
QuestionCStatic Background color Pin
Anu_Bala19-May-10 23:34
Anu_Bala19-May-10 23:34 
AnswerRe: CStatic Background color [modified] Pin
Hristo-Bojilov20-May-10 0:37
Hristo-Bojilov20-May-10 0:37 
GeneralRe: CStatic Background color Pin
Anu_Bala20-May-10 1:29
Anu_Bala20-May-10 1:29 
QuestionOpen Control panel Using VC++ Pin
Sabid M19-May-10 21:17
Sabid M19-May-10 21:17 

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.