代码如下,xxx.h是另一个工程的一个头文件,已经在附加依赖项包含了lib文件,不知道为什么这样,求大神指教!
#include "xxx.h"
#include <iostream>
//using namespace std;
using namespace xxx;
int main() {
std::cout << xxx("abc",true);
system("pause");
}
错误 LNK2001 无法解析的外部符号 "class std::basic_string,class std::allocator > __cdecl xxx::xxx(class std::basic_string,class std::allocator > const &,bool)" (?xxx@xxx@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV23@_N@Z) wbtest D:\cygwin64\home\trunk1206\xxx\xxx\xxx\xxx\xxx.obj 1