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

C / C++ / MFC

 
Questionreading from the Microphone Pin
hamidreza_buddy24-May-07 7:39
hamidreza_buddy24-May-07 7:39 
AnswerRe: reading from the Microphone Pin
Mark Salsbery24-May-07 8:00
Mark Salsbery24-May-07 8:00 
AnswerRe: reading from the Microphone Pin
normanS24-May-07 9:08
normanS24-May-07 9:08 
Questionrelation between CMainframe and the application class Pin
prithaa24-May-07 6:12
prithaa24-May-07 6:12 
AnswerRe: relation between CMainframe and the application class Pin
David Crow24-May-07 7:08
David Crow24-May-07 7:08 
AnswerRe: relation between CMainframe and the application class Pin
Mark Salsbery24-May-07 8:12
Mark Salsbery24-May-07 8:12 
AnswerRe: relation between CMainframe and the application class Pin
Nelek24-May-07 21:22
protectorNelek24-May-07 21:22 
QuestionLNK2005 linking problem with libcmt.lib [modified] Pin
theboywilse24-May-07 5:41
theboywilse24-May-07 5:41 
I'm currently trying to get our code to link using VS8 or 2005. We are currently using VS7 or 2003.
When I link I get a collection of the following messages.

LIBCMT.lib(printf.obj) : error LNK2005: _printf already defined in libredir.obw
LIBCMT.lib(calloc.obj) : error LNK2005: _calloc already defined in liballoc.obw
LIBCMT.lib(realloc.obj) : error LNK2005: _realloc already defined in liballoc.obw
LIBCMT.lib(vprintf.obj) : error LNK2005: _vprintf already defined in libredir.obw

After these errors obviously the linking fails.

The code I am linking is a collection of C and C++ code producing DLLs and EXEs. Bits of the system were written in the very early days of windows. So there we have our own code to do malloc, calloc, printf, etc.

What I understand after spending hours reading Microsoft and this site is that prior to VS8 we were linking using the single threaded library libc.lib. Now this is no more and thus we have to use the multi-threaded libcmt.lib. This is the cause of the bother.

The questions Now we are being forced to use the multi-threaded library libcmt.lib how do I stop it complaining about our own defined functions and let our software compile?

The answer isn't obviously to get rid of our versions because our huge code base uses these functions instead of microsoft and in the case of printf does something special to the output.

One oddity is that we have defined our own malloc and it doesn't whinge about that.

Any help would be gratefully received.

steven



-- modified at 13:00 Thursday 24th May, 2007
QuestionApplication Crashes on OnBegindrag Pin
AAKAra24-May-07 5:19
AAKAra24-May-07 5:19 
QuestionAccess from thread Pin
garfield18524-May-07 5:12
garfield18524-May-07 5:12 
AnswerRe: Access from thread Pin
KellyR24-May-07 5:24
KellyR24-May-07 5:24 
GeneralRe: Access from thread Pin
garfield18524-May-07 5:38
garfield18524-May-07 5:38 
GeneralRe: Access from thread Pin
Roger Stoltz24-May-07 5:49
Roger Stoltz24-May-07 5:49 
QuestionWeird problem with bitmaps.. Pin
KellyR24-May-07 4:32
KellyR24-May-07 4:32 
Questionhow to close .exe file in process list in task manager Pin
nahitan24-May-07 4:13
nahitan24-May-07 4:13 
QuestionRe: how to close .exe file in process list in task manager Pin
David Crow24-May-07 4:19
David Crow24-May-07 4:19 
AnswerRe: how to close .exe file in process list in task manager Pin
Mark Salsbery24-May-07 6:32
Mark Salsbery24-May-07 6:32 
GeneralRe: how to close .exe file in process list in task manager Pin
nahitan24-May-07 9:41
nahitan24-May-07 9:41 
AnswerRe: how to close .exe file in process list in task manager Pin
swarup24-May-07 8:22
swarup24-May-07 8:22 
GeneralRe: how to close .exe file in process list in task manager Pin
nahitan24-May-07 9:45
nahitan24-May-07 9:45 
AnswerRe: how to close .exe file in process list in task manager Pin
Hamid_RT24-May-07 11:12
Hamid_RT24-May-07 11:12 
Questiondelete "anonymous?" string Pin
daveyerwin24-May-07 4:07
daveyerwin24-May-07 4:07 
AnswerRe: delete "anonymous?" string Pin
BadKarma24-May-07 4:11
BadKarma24-May-07 4:11 
GeneralRe: delete "anonymous?" string Pin
Mark Salsbery24-May-07 6:33
Mark Salsbery24-May-07 6:33 
Question.Net 1.1 --> .Net 2.0 Pin
Tal S.24-May-07 3:51
Tal S.24-May-07 3:51 

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.