Click here to Skip to main content
15,881,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: get the list of subkeys under a specific key Pin
Stuart Dootson23-Apr-09 3:24
professionalStuart Dootson23-Apr-09 3:24 
GeneralRe: get the list of subkeys under a specific key Pin
MrKBA23-Apr-09 4:06
MrKBA23-Apr-09 4:06 
GeneralRe: get the list of subkeys under a specific key Pin
Stuart Dootson23-Apr-09 4:20
professionalStuart Dootson23-Apr-09 4:20 
QuestionHow to convert a byte[] to Bitmap image? Pin
kapardhi23-Apr-09 2:08
kapardhi23-Apr-09 2:08 
AnswerRe: How to convert a byte[] to Bitmap image? Pin
CPallini23-Apr-09 3:01
mveCPallini23-Apr-09 3:01 
GeneralRe: How to convert a byte[] to Bitmap image? Pin
kapardhi23-Apr-09 3:03
kapardhi23-Apr-09 3:03 
GeneralRe: How to convert a byte[] to Bitmap image? Pin
CPallini23-Apr-09 5:37
mveCPallini23-Apr-09 5:37 
Questionlibcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72823-Apr-09 1:52
RKP72823-Apr-09 1:52 
This is related error to a C std function strtoul.
This problem started coming up when I migrated from VS 2003 to VS 2008.
While building c code I am getting the following error:
############################################################################
libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in test.lib(string.obj)
c:\xyz.exe : fatal error LNK1169: one or more multiply defined symbols found
*** Error code 1169
clearmake: Error: Build script failed for
"c:\xyz.exe "
############################################################################

This error tells us that while building the libcmtd.lib it got the definition of the strtoul function in the test.lib

The std strtoul function is defined in the file strtol.c which is a standard file like stdio.h.
I have also customized definition of this function defined in my project.

While building the code my project references the customized code and not the std function
I want to use the standard strtoul function.
The customized strtoul is not be removed completey as some files need to reference the customized strtoul while some part will refer the original strtoul.

Any solution for it ?
Why is the VS2008 linker using the customized function instead of using the standard one.
What the difference between VS2003 and VS2008 which is causing the error.
QuestionRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
CPallini23-Apr-09 2:01
mveCPallini23-Apr-09 2:01 
AnswerRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72823-Apr-09 2:18
RKP72823-Apr-09 2:18 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
CPallini23-Apr-09 2:43
mveCPallini23-Apr-09 2:43 
AnswerRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson23-Apr-09 3:21
professionalStuart Dootson23-Apr-09 3:21 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72823-Apr-09 19:26
RKP72823-Apr-09 19:26 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson23-Apr-09 20:06
professionalStuart Dootson23-Apr-09 20:06 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72823-Apr-09 22:06
RKP72823-Apr-09 22:06 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson23-Apr-09 22:18
professionalStuart Dootson23-Apr-09 22:18 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72824-Apr-09 0:11
RKP72824-Apr-09 0:11 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson24-Apr-09 1:16
professionalStuart Dootson24-Apr-09 1:16 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72824-Apr-09 1:53
RKP72824-Apr-09 1:53 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
Stuart Dootson24-Apr-09 3:23
professionalStuart Dootson24-Apr-09 3:23 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72824-Apr-09 22:09
RKP72824-Apr-09 22:09 
GeneralRe: libcmtd.lib(strtol.obj) : error LNK2005: strtoul already defined in . . . Pin
RKP72826-Apr-09 21:32
RKP72826-Apr-09 21:32 
QuestionHow to implement CCrypto class into a MDI project ? Pin
mesajflaviu23-Apr-09 1:46
mesajflaviu23-Apr-09 1:46 
AnswerRe: How to implement CCrypto class into a MDI project ? Pin
Iain Clarke, Warrior Programmer23-Apr-09 2:10
Iain Clarke, Warrior Programmer23-Apr-09 2:10 
GeneralRe: How to implement CCrypto class into a MDI project ? Pin
mesajflaviu23-Apr-09 8:35
mesajflaviu23-Apr-09 8:35 

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.