JayDiddums10
MIS
Hi,
I'm trying to build a simple C++ program using Visual C++ 2005 Express Edition and I'm running into these errors. I followed the instructions according to this link
and I still have problems. Here is the code I'm trying to build...
Here is the output.
1>Linking...
1>Test3.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std:: operator<<<char,struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??$?6DU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _main
1>C:\Documents and Settings\Kevin\My Documents\Visual Studio 2005\Projects\Test\Debug\Test3.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at file://c:\Documents and Settings\Kevin\My Documents\Visual Studio 2005\Projects\Test\Test3\Debug\BuildLog.htm
I've read many similar posts but all of the solutions didn't work for me. Please help.
Thanks
I'm trying to build a simple C++ program using Visual C++ 2005 Express Edition and I'm running into these errors. I followed the instructions according to this link
and I still have problems. Here is the code I'm trying to build...
Code:
#include <iostream>
void main()
{
std::cout << "\n Hello World. \n";
std::cout << std::endl;
}
Here is the output.
1>Linking...
1>Test3.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std:: operator<<<char,struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_??$?6DU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _main
1>C:\Documents and Settings\Kevin\My Documents\Visual Studio 2005\Projects\Test\Debug\Test3.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at file://c:\Documents and Settings\Kevin\My Documents\Visual Studio 2005\Projects\Test\Test3\Debug\BuildLog.htm
I've read many similar posts but all of the solutions didn't work for me. Please help.
Thanks