i want read sqlite database file using c++ , vs2010 , writing below code.
sqlite3 *db; int rc = sqlite3_open("test.db", &db);
i getting kind of error
lib(msvcr100.dll) : error lnk2005: _strncmp defined in libcmtd.lib(strncmp.obj) 1>msvcrt.lib(msvcr100.dll) : error lnk2005: _malloc defined in libcmtd.lib(dbgmalloc.obj) 1>msvcrt.lib(msvcr100.dll) : error lnk2005: _free defined in libcmtd.lib(dbgfree.obj) 1>msvcrt.lib(msvcr100.dll) : error lnk2005: _realloc defined in libcmtd.lib(dbgrealloc.obj) 1>msvcrt.lib(msvcr100.dll) : error lnk2005: _memmove defined in libcmtd.lib(memmove.obj) 1>msvcrt.lib(msvcr100.dll) : error lnk2005: _atoi defined in libcmtd.lib(atox.obj) 1>msvcrt.lib(ti_inst.obj) : error lnk2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@aae@abv0@@z) defined in libcmtd.lib(typinfo.obj) 1>msvcrt.lib(ti_inst.obj) : error lnk2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@aaeaav0@abv0@@z) defined in libcmtd.lib(typinfo.obj) 1>link : warning lnk4098: defaultlib 'msvcrt' conflicts use of other libs; use /nodefaultlib:library 1>output\win32\debug\sc.exe : fatal error lnk1169: 1 or more multiply defined symbols found
i did included sqlite3.lib in project , had given path ..
within project, trying use both debug version , release (non-debug) version of c standard library.
this means sqlite3.lib using 1 kind of c standard library, , project using another. project, , used libraries must match debug/release choice, , static/dynamic use of standard library choice.
Comments
Post a Comment