---
title: "error LNK2005 and error LNK2019"
author: "msforever"
date: "2012-08-09T23:08:52Z"
tags: []
categories: ["编程语言"]
slug: "error-lnk2005-and-error-lnk2019"
draft: false
lastmod: "2012-08-09T23:08:52Z"
id: 1627671
url: "https://msforever.iteye.com/blog/1627671"
---

error LNK2005 and error LNK2019

error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: double & __thiscall std::vector<double,class std

MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)


this kind error, just need change the C/C++->code generation-> runtime library "Multi-threaded Debug (/MTd)" ->Multi-threaded Debug DLL (/MDd)