login about faq

I am trying to add the csv file import functionality to an existing Visual Studio 2010 MFC applicaiton.

I am building in 64 bit debug.

I am linking with ChilkatDbg_x64.lib

I added all .h files to the include path.

I included #include "CkCsv.h" in the .h file where I added this "CkCsv csv;" to my class that will contain the loaded cvs class variable

When I build I get:

1>LIBCMTD.lib(gmtime64.obj) : error LNK2005: _gmtime64 already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(loctim64.obj) : error LNK2005: _localtime64 already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(sprintf.obj) : error LNK2005: sprintf already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(dbgheap.obj) : error LNK2005: _CrtSetCheckCount already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(timeset.obj) : error LNK2005: daylight already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(timeset.obj) : error LNK2005: timezone already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(invarg.obj) : error LNK2005: _invalid_parameter already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(dbghook.obj) : error LNK2005: crt_debugger_hook already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(atox.obj) : error LNK2005: atoi already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(atox.obj) : error LNK2005: _atoi64 already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(getenv.obj) : error LNK2005: getenv already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(mlock.obj) : error LNK2005: _lock already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(mlock.obj) : error LNK2005: _unlock already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: exit already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: _cexit already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: _amsg_exit already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: _initterm_e already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(winxfltr.obj) : error LNK2005: _XcptFilter already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(dbgrptw.obj) : error LNK2005: _CrtDbgReportW already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(setlocal.obj) : error LNK2005: _configthreadlocale already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: xi_a already defined in msvcrtd.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: xi_z already defined in msvcrtd.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: xc_a already defined in msvcrtd.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: xc_z already defined in msvcrtd.lib(cinitexe.obj)
1>LIBCMTD.lib(hooks.obj) : error LNK2005: "void cdecl terminate(void)" (?terminate@@YAXXZ) already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(errmode.obj) : error LNK2005: set_app_type already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(strnicmp.obj) : error LNK2005: _strnicmp already defined in msvcrtd.lib(MSVCR100D.dll)
1>LIBCMTD.lib(tolower.obj) : error LNK2005: tolower already defined in msvcrtd.lib(MSVCR100D.dll)
1>msvcrtd.lib(MSVCR100D.dll) : error LNK2005: _setmbcp already defined in LIBCMTD.lib(mbctype.obj)
1>LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function tmainCRTStartup

asked Jul 23 '12 at 10:42

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


See the README.html that is included in the download.

Also, see this Chilkat blog post about Visual C++ linking: http://www.cknotes.com/?p=23

link

answered Jul 23 '12 at 10:43

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×2

Asked: Jul 23 '12 at 10:42

Seen: 4,665 times

Last updated: Jul 23 '12 at 10:43

powered by OSQA