Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionXML Parsing Pin
swaapu8-Feb-06 19:45
swaapu8-Feb-06 19:45 
AnswerRe: XML Parsing Pin
ThatsAlok8-Feb-06 22:03
ThatsAlok8-Feb-06 22:03 
AnswerRe: XML Parsing Pin
kakan8-Feb-06 22:03
professionalkakan8-Feb-06 22:03 
AnswerRe: XML Parsing Pin
jhwurmbach8-Feb-06 22:12
jhwurmbach8-Feb-06 22:12 
GeneralRe: XML Parsing Pin
Rob Caldecott8-Feb-06 22:21
Rob Caldecott8-Feb-06 22:21 
QuestionOffice 2003 combobox colors (themed or not) Pin
lgaudouen8-Feb-06 19:43
lgaudouen8-Feb-06 19:43 
QuestionHow to make application support OLE Automation? Pin
Kemi10018-Feb-06 17:24
Kemi10018-Feb-06 17:24 
QuestionSingle threaded library problem Pin
CodeGoose8-Feb-06 12:49
CodeGoose8-Feb-06 12:49 
Hello. I'm currently having a problem linking a single threaded library to a multithreaded program.
I'm using Haru pdf library found here: http://sourceforge.net/projects/libharu/

Is there any way I can change the project or makefile to work with my multithreaded project?

I believe this is the problem as I am getting the following errors:

--------------------------------------------------------------
Linking...
LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(nlsdata1.obj) : error LNK2005: ___mb_cur_max already defined in _libc_fix.obj
LIBCMT.lib(lconv.obj) : error LNK2005: _localeconv already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(ctype.obj) : error LNK2005: __pctype already defined in _libc_fix.obj
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(strtol.obj) : error LNK2005: _strtoul already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRTD.lib(MSVCRTD.dll)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __ltoa already defined in LIBCMT.lib(xtoa.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMT.lib(mbctype.obj)
LIBCMT.lib(tolower.obj) : warning LNK4006: _tolower already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(crt0dat.obj) : warning LNK4006: __exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(nlsdata1.obj) : warning LNK4006: ___mb_cur_max already defined in _libc_fix.obj; second definition ignored
LIBCMT.lib(lconv.obj) : warning LNK4006: _localeconv already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(ctype.obj) : warning LNK4006: __pctype already defined in _libc_fix.obj; second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(winxfltr.obj) : warning LNK4006: __XcptFilter already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(strtol.obj) : warning LNK4006: _strtoul already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(getenv.obj) : warning LNK4006: _getenv already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: __ltoa already defined in LIBCMT.lib(xtoa.obj); second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: __setmbcp already defined in LIBCMT.lib(mbctype.obj); second definition ignored
Creating library Debug/DA20.lib and object Debug/DA20.exp
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/DA20.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

DA20.exe - 17 error(s), 17 warning(s)
--------------------------------------------------------------

Any help would be greatly appreciated.
Thanks.
AnswerRe: Single threaded library problem Pin
Anilkumar K V8-Feb-06 18:30
Anilkumar K V8-Feb-06 18:30 
GeneralRe: Single threaded library problem Pin
CodeGoose9-Feb-06 5:28
CodeGoose9-Feb-06 5:28 
QuestionLamp Control Pin
felixix8-Feb-06 11:09
felixix8-Feb-06 11:09 
AnswerRe: Lamp Control Pin
Ravi Bhavnani8-Feb-06 11:29
professionalRavi Bhavnani8-Feb-06 11:29 
GeneralRe: Lamp Control Pin
felixix8-Feb-06 11:45
felixix8-Feb-06 11:45 
AnswerRe: Lamp Control Pin
ThatsAlok8-Feb-06 21:55
ThatsAlok8-Feb-06 21:55 
GeneralRe: Lamp Control Pin
felixix9-Feb-06 10:47
felixix9-Feb-06 10:47 
GeneralRe: Lamp Control Pin
ThatsAlok9-Feb-06 20:06
ThatsAlok9-Feb-06 20:06 
AnswerRe: Lamp Control Pin
toxcct8-Feb-06 22:34
toxcct8-Feb-06 22:34 
GeneralRe: Lamp Control Pin
ThatsAlok8-Feb-06 22:38
ThatsAlok8-Feb-06 22:38 
GeneralRe: Lamp Control Pin
toxcct8-Feb-06 22:41
toxcct8-Feb-06 22:41 
QuestionCreate 'About' Dialog Box for Acrobat Plugin Pin
gomfp8-Feb-06 10:19
gomfp8-Feb-06 10:19 
AnswerRe: Create 'About' Dialog Box for Acrobat Plugin Pin
Prakash Nadar8-Feb-06 17:09
Prakash Nadar8-Feb-06 17:09 
GeneralRe: Create 'About' Dialog Box for Acrobat Plugin Pin
gomfp8-Feb-06 22:20
gomfp8-Feb-06 22:20 
GeneralRe: Create 'About' Dialog Box for Acrobat Plugin Pin
Prakash Nadar8-Feb-06 22:36
Prakash Nadar8-Feb-06 22:36 
GeneralRe: Create 'About' Dialog Box for Acrobat Plugin Pin
gomfp9-Feb-06 18:06
gomfp9-Feb-06 18:06 
GeneralRe: Create 'About' Dialog Box for Acrobat Plugin Pin
Prakash Nadar9-Feb-06 23:12
Prakash Nadar9-Feb-06 23:12 

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.