Click here to Skip to main content
15,886,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Open Control panel Using VC++ Pin
Hristo-Bojilov19-May-10 21:41
Hristo-Bojilov19-May-10 21:41 
GeneralRe: Open Control panel Using VC++ Pin
Sabid M19-May-10 22:40
Sabid M19-May-10 22:40 
QuestionRetrive System Serial Number Pin
kushMuchaal19-May-10 20:52
kushMuchaal19-May-10 20:52 
AnswerRe: Retrive System Serial Number Pin
CPallini19-May-10 21:00
mveCPallini19-May-10 21:00 
GeneralRe: Retrive System Serial Number Pin
kushMuchaal19-May-10 22:08
kushMuchaal19-May-10 22:08 
GeneralRe: Retrive System Serial Number Pin
kushMuchaal19-May-10 22:11
kushMuchaal19-May-10 22:11 
GeneralRe: Retrive System Serial Number Pin
Richard MacCutchan20-May-10 2:21
mveRichard MacCutchan20-May-10 2:21 
QuestionButton Size Pin
AbhiHcl19-May-10 19:27
AbhiHcl19-May-10 19:27 
AnswerRe: Button Size Pin
Stephen Hewitt19-May-10 20:03
Stephen Hewitt19-May-10 20:03 

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.