| 
 | 
 
100鱼币 
 本帖最后由 两个人 于 2013-12-12 20:11 编辑  
 
怎样添加头文件在VC6.0里 ,怎么设置VC6.0?在目录里设置的不行!!!总是提示:::::::::::::::::::: 
 
--------------------Configuration: Text1 - Win32 Debug-------------------- 
Linking... 
Text1.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Employee::get_name(void)const " (?get_name@Employee@@QBE?AV?$basic_string@DU?$char_trai 
ts@D@std@@V?$allocator@D@2@@std@@XZ) 
Text1.obj : error LNK2001: unresolved external symbol "public: void __thiscall Employee::set_salary(double)" (?set_salary@Employee@@QAEXN@Z) 
Text1.obj : error LNK2001: unresolved external symbol "public: double __thiscall Employee::get_salary(void)const " (?get_salary@Employee@@QBENXZ) 
Text1.obj : error LNK2001: unresolved external symbol "public: __thiscall Employee::Employee(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,double)" (??0Employee@@QAE@V?$basic_string@DU?$char_traits@D@std@@V? 
$allocator@D@2@@std@@N@Z) 
Debug/Text1.exe : fatal error LNK1120: 4 unresolved externals 
执行 link.exe 时出错. 
 
 
--------------------配置:文本1 - Win32调试-------------------- 
链接... 
Text1.obj :错误LNK2001:无法解析的外部符号“公众:一流的std :: basic_string的<字符,结构的std :: char_traits <Char>来,类的std ::分配器<Char>来> __ thiscall员工:: get_name (无效)常量” ( ? @ @ QBE ? AV? $ basic_string的get_name @ @雇员杜? $ char_trai 
TS @ D @ STD @ @ V ? $分配器@ D @ 2 @ @ STD @ @ XZ ) 
Text1.obj :错误LNK2001:无法解析的外部符号“公共语句:void __ thiscall员工:: set_salary (双) ” ( @ @ QAEXN @ Z set_salary @员工? ) 
Text1.obj :错误LNK2001:无法解析的外部符号“公众:双__ thiscall员工:: get_salary (无效)常量” ( ? @ @ QBENXZ get_salary @雇员) 
Text1.obj :错误LNK2001:无法解析的外部符号“公众: __ thiscall员工::雇员(类的std :: basic_string的<字符,结构的std :: char_traits <Char>来,类的std ::分配器<Char>来> ,双面) ” ( basic_string的? 0Employee @ @ QAE @ V ? $ @杜? $ char_traits @ D @ STD @ @ V ? 
$分配器@ D @ 2 @ @ @的std @ N @ Z) 
Debug/Text1.exe :致命错误LNK1120 :1无法解析的外部 
执行的link.exe时出错。 
 
 
 
 
 |   
 
 
 
 
 
 |