Модераторы: Daevaorn
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Multi thread Debug 
V
    Опции темы
necrom
Дата 14.4.2011, 16:41 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Шустрый
*


Профиль
Группа: Участник
Сообщений: 60
Регистрация: 21.2.2011

Репутация: нет
Всего: нет



Среда проектирования MVS 2005. Нужно, чтоб проект собирался из статических либ. Ставлю Run-Time library в /MTd
В Linker -> input прописаны либы 
Код

libcurld.lib
ws2_32.lib
wldap32.lib
libcmtd.lib
winmm.lib
intl.lib
libcmtd.lib


При сборке получаю такой вот букет 
Код

1>Linking...
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _calloc already defined in libcmtd.lib(dbgheap.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _realloc already defined in libcmtd.lib(dbgheap.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _free already defined in libcmtd.lib(dbgheap.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _malloc already defined in libcmtd.lib(dbgheap.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: ___iob_func already defined in libcmtd.lib(_file.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strchr already defined in libcmtd.lib(strchr.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strtoul already defined in libcmtd.lib(strtol.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _memmove already defined in libcmtd.lib(memmove.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _tolower already defined in libcmtd.lib(tolower.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strtol already defined in libcmtd.lib(strtol.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isxdigit already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strrchr already defined in libcmtd.lib(strrchr.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __strtoi64 already defined in libcmtd.lib(strtoq.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strncmp already defined in libcmtd.lib(strncmp.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _fclose already defined in libcmtd.lib(fclose.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _sprintf already defined in libcmtd.lib(sprintf.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isdigit already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strcat_s already defined in libcmtd.lib(strcat_s.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strcpy_s already defined in libcmtd.lib(strcpy_s.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strncpy_s already defined in libcmtd.lib(strncpy_s.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _sprintf_s already defined in libcmtd.lib(sprintf.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __errno already defined in libcmtd.lib(dosmap.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isalnum already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isspace already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __lseeki64 already defined in libcmtd.lib(lseeki64.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _fflush already defined in libcmtd.lib(fflush.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _getenv already defined in libcmtd.lib(getenv.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isalpha already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isgraph already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _islower already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isupper already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _isprint already defined in libcmtd.lib(_ctype.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
1>MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __close already defined in libcmtd.lib(close.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __fileno already defined in libcmtd.lib(fileno.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __stricmp already defined in libcmtd.lib(stricmp.obj)
1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __strnicmp already defined in libcmtd.lib(strnicmp.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>C:\Documents and Settings\Necrom\My Documents\Visual Studio 2005\Projects\Curl_web\Debug\Web.exe : fatal error LNK1169: one or more multiply defined symbols found


Кто, что посоветует, кроме сборки с DLL?
Нашёл только такое решение дописать в командную строку параметр /FORCE:MULTIPLE

Есть, ещё какое нибуь решение?

Это сообщение отредактировал(а) necrom - 14.4.2011, 17:04
PM MAIL   Вверх
leniviy
Дата 14.4.2011, 22:34 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 552
Регистрация: 8.2.2003
Где: Спб

Репутация: 1
Всего: 5



У меня такое было. Причин может быть несколько.
Одна из кастомных либ собрана без опции /Zl, чтобы исправить:
проект либы->Properties->C/C++->Advanced->Omit Default Library Names: Yes (/Zl)
и пересобрать
Ещё VS автоматически добавляет в Linker -> input все project dependencies. Может возникнуть путаница с Project configurations: debug/release. 
Добавление тоже можно отключить в свойствах проекта, правда не помню, где конкретно.

Когда я делаю статик либы на VS2005, то обычно оставляю только Release конфигурацию,  но зато включаю эти опции:
- General->Whole Program Optimization: No Whole Program Optimization

- C/C++->General->Debug Information Format: Program Database (/Zi)

- C/C++->Optimization->Optimization: Disabled (/Od)

- C/C++->Code Generation->Runtime Library: Multi-threaded (/MT)

- C/C++->Command Line->Additional options: /we4013

- C/C++->Advanced->Omit Default Library Names: Yes (/Zl)



Это сообщение отредактировал(а) leniviy - 14.4.2011, 22:39
PM MAIL   Вверх
jonie
Дата 15.4.2011, 14:43 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Эксперт
****


Профиль
Группа: Завсегдатай
Сообщений: 5613
Регистрация: 21.8.2005
Где: Владимир

Репутация: 15
Всего: 118



также в опциях линкера если порыться то можно найти verbose режим, он покажет откуда появляется зависимость


--------------------
Что-то не поняли? -> Напейтесь до зеленых человечков... эта сверхцивилизация Вам поможет...
PM MAIL Jabber   Вверх
necrom
Дата 16.4.2011, 00:11 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Шустрый
*


Профиль
Группа: Участник
Сообщений: 60
Регистрация: 21.2.2011

Репутация: нет
Всего: нет



Спасибо помогли настройки, ещё одну ошибку у себя нашёл, некоторые либы были скомпилированны как /Mtd , поменял и всё встало на свои места )
PM MAIL   Вверх
necrom
Дата 16.4.2011, 16:57 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Шустрый
*


Профиль
Группа: Участник
Сообщений: 60
Регистрация: 21.2.2011

Репутация: нет
Всего: нет



Опять Хаус начался, всё работало прекрасно, пока не добавил в проект 
Парус строчек 
Код

curl_easy_setopt(curl, CURLOPT_COOKIELIST, "");
curl_easy_setopt(curl, CURLOPT_HTTPPOST, 1);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postquery.c_str());
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, postquery.size());


После этого полезли бяки в режиме Debug
Код

1>Linking...
1>libcpmtd.lib(string.obj) : error LNK2019: unresolved external symbol ___security_cookie referenced in function "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(formdata.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(curl_fnmatch.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(getenv.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(mprintf.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(curl_addrinfo.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(hostthre.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(hostip4.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(cookie.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(connect.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(inet_ntop.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>Main.obj : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(easy.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>Main.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function __ehhandler$_main
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler3
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler3
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler3
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(formdata.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(curl_fnmatch.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(getenv.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(netrc.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(parsedate.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(pingpong.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(http.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(http_digest.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(socks.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(progress.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(smtp.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(tftp.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(mprintf.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(curl_addrinfo.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(hostthre.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(hostip4.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(cookie.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(connect.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(inet_ntop.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>Main.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __ehhandler$_main
1>libcurld.lib(easy.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>libcurld.lib(splay.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
1>libcurld.lib(fileinfo.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
1>libcurld.lib(curl_fnmatch.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
1>libcurld.lib(hmac.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
1>libcurld.lib(nonblock.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(inet_pton.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(if2ip.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(curl_threads.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>Main.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(easy.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(curl_rand.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcurld.lib(hostip.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _atexit
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol _atexit
1>Main.obj : error LNK2019: unresolved external symbol _atexit referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Check_grabbing::page(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?page@Check_grabbing@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@000@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _atexit
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol _atexit
1>libcpmtd.lib(xlock.obj) : error LNK2001: unresolved external symbol _atexit
1>libcurld.lib(formdata.obj) : error LNK2001: unresolved external symbol _strlen
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _strlen
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol _strlen
1>libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external symbol _strlen referenced in function "protected: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::_DebugHeapAllocator<char> >::_Copy(unsigned int,unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@IAEXII@Z)
1>libcurld.lib(parsedate.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(pingpong.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(base64.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(md5.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(http_digest.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(socks.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(strequal.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(escape.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(ldap.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(telnet.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(ftp.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(http.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(smtp.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(pop3.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(imap.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(tftp.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(mprintf.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(curl_addrinfo.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(gopher.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(rtsp.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(cookie.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(sendf.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(connect.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(inet_ntop.obj) : error LNK2001: unresolved external symbol _strlen
1>Main.obj : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(hostip.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(url.obj) : error LNK2001: unresolved external symbol _strlen
1>libcurld.lib(transfer.obj) : error LNK2001: unresolved external symbol _strlen
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>Main.obj : error LNK2019: unresolved external symbol __CxxThrowException@8 referenced in function "public: char * __cdecl std::_DebugHeapAllocator<char>::allocate(unsigned int,void const *)" (?allocate@?$_DebugHeapAllocator@D@std@@QAAPADIPBX@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>Main.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::_DebugHeapAllocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::_DebugHeapAllocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::_DebugHeapAllocator<char> > const &,unsigned int,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@QAEAAV12@ABV12@II@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>Main.obj : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) referenced in function "public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>Main.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) referenced in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) referenced in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcurld.lib(imap.obj) : error LNK2001: unresolved external symbol _memcmp
1>Main.obj : error LNK2019: unresolved external symbol _memcmp referenced in function "public: static int __cdecl std::char_traits<char>::compare(char const *,char const *,unsigned int)" (?compare@?$char_traits@D@std@@SAHPBD0I@Z)
1>libcurld.lib(hash.obj) : error LNK2001: unresolved external symbol _memcmp
1>libcurld.lib(smtp.obj) : error LNK2001: unresolved external symbol _memcmp
1>libcurld.lib(pop3.obj) : error LNK2001: unresolved external symbol _memcmp
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) referenced in function "public: __thiscall std::runtime_error::runtime_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0runtime_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ)
1>Main.obj : error LNK2019: unresolved external symbol __invalid_parameter referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@$0A@@std@@@std@@QBE_NABV012@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __invalid_parameter
1>Main.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@$0A@@std@@@std@@QBE_NABV012@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol _free
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol _free
1>Main.obj : error LNK2019: unresolved external symbol _free referenced in function "void __cdecl std::_DebugHeapDelete<void>(void *)" (??$_DebugHeapDelete@X@std@@YAXPAX@Z)
1>libcurld.lib(easy.obj) : error LNK2001: unresolved external symbol _free
1>libcurld.lib(curl_addrinfo.obj) : error LNK2001: unresolved external symbol _free
1>libcurld.lib(dict.obj) : error LNK2001: unresolved external symbol _free
1>Main.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) referenced in function "struct std::_Tree_nod<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::_Node * __cdecl std::_Allocate<struct std::_Tree_nod<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::_Node>(unsigned int,struct std::_Tree_nod<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::_Node *)" (??$_Allocate@U_Node@?$_Tree_nod@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@$0A@@std@@@std@@@std@@YAPAU_Node@?$_Tree_nod@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@$0A@@std@@@0@IPAU120@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>Main.obj : error LNK2019: unresolved external symbol _memcpy_s referenced in function "public: static char * __cdecl std::char_traits<char>::_Copy_s(char *,unsigned int,char const *,unsigned int)" (?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
.................. 
1>LINK : error LNK2001: unresolved external symbol __load_config_used


Есть идеи? Причём в release без ошибок собирается
PM MAIL   Вверх
leniviy
Дата 17.4.2011, 12:21 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 552
Регистрация: 8.2.2003
Где: Спб

Репутация: 1
Всего: 5



В M$ криво реализован C++ (простой C нормально) . Debug и Release библиотеки несовместимы. Если в ваших статических либах используется C++, то вам всё-таки придётся иметь по 2 версии таких либ


PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
Правила форума "С++:Общие вопросы"
Earnest Daevaorn

Добро пожаловать!

  • Черновик стандарта C++ (за октябрь 2005) можно скачать с этого сайта. Прямая ссылка на файл черновика(4.4мб).
  • Черновик стандарта C (за сентябрь 2005) можно скачать с этого сайта. Прямая ссылка на файл черновика (3.4мб).
  • Прежде чем задать вопрос, прочтите это и/или это!
  • Здесь хранится весь мировой запас ссылок на документы, связанные с C++ :)
  • Не брезгуйте пользоваться тегами [code=cpp][/code].
  • Пожалуйста, не просите написать за вас программы в этом разделе - для этого существует "Центр Помощи".
  • C++ FAQ

Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, Earnest Daevaorn

 
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | C/C++: Общие вопросы | Следующая тема »


 




[ Время генерации скрипта: 0.0991 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.