Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Wrappers Pin
CPallini2-May-07 10:09
mveCPallini2-May-07 10:09 
AnswerRe: Wrappers Pin
Stephen Hewitt2-May-07 21:45
Stephen Hewitt2-May-07 21:45 
GeneralRe: Wrappers Pin
huehue3-May-07 6:37
huehue3-May-07 6:37 
QuestionMigrating MFC to Windows Forms Pin
earlgraham2-May-07 8:53
earlgraham2-May-07 8:53 
AnswerRe: Migrating MFC to Windows Forms Pin
Maximilien2-May-07 9:23
Maximilien2-May-07 9:23 
AnswerRe: Migrating MFC to Windows Forms Pin
Richard Andrew x642-May-07 14:38
professionalRichard Andrew x642-May-07 14:38 
GeneralRe: Migrating MFC to Windows Forms Pin
earlgraham3-May-07 12:54
earlgraham3-May-07 12:54 
QuestionUnknown missing library file [modified] Pin
esia2-May-07 8:19
esia2-May-07 8:19 
Hi, I am using Visual Studio 2005, I build new win32 console application project and I tried to compile this simple code
// a.cpp : Defines the entry point for the console application.<br />
//<br />
<br />
#include "stdafx.h"<br />
#include <iostream><br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	using namespace std;<br />
  char question[] = "Please, enter your first name: ";<br />
  char greeting[] = "Hello, ";<br />
  char yourname [80];<br />
  cout << question;<br />
  cin >> yourname;<br />
  cout << greeting << yourname << "!";<br />
  return 0;<br />
}


But I get error of
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 _wmain

But when I comment out the line
// cout << question;<br />
// cout << greeting << yourname << "!";


it compile successfully.

I think there is library file missing, but don't know which one. I googled out so many website and still can't find out the solutions, any ideas how to solve this ?

Thanks.



-- modified at 1:33 Sunday 6th May, 2007
QuestionRe: Unknown missing library file Pin
David Crow2-May-07 9:05
David Crow2-May-07 9:05 
AnswerRe: Unknown missing library file Pin
esia2-May-07 16:37
esia2-May-07 16:37 
AnswerRe: Unknown missing library file Pin
George L. Jackson2-May-07 12:29
George L. Jackson2-May-07 12:29 
GeneralRe: Unknown missing library file Pin
esia2-May-07 16:39
esia2-May-07 16:39 
GeneralRe: Unknown missing library file Pin
David Crow3-May-07 2:23
David Crow3-May-07 2:23 
GeneralRe: Unknown missing library file Pin
David Crow3-May-07 2:35
David Crow3-May-07 2:35 
AnswerRe: Unknown missing library file Pin
bob169722-May-07 17:57
bob169722-May-07 17:57 
GeneralRe: Unknown missing library file Pin
David Crow3-May-07 2:26
David Crow3-May-07 2:26 
GeneralRe: Unknown missing library file Pin
bob169723-May-07 6:02
bob169723-May-07 6:02 
AnswerRe: Unknown missing library file Pin
Paresh Chitte2-May-07 18:31
Paresh Chitte2-May-07 18:31 
GeneralRe: Unknown missing library file Pin
David Crow3-May-07 2:24
David Crow3-May-07 2:24 
AnswerRe: Unknown missing library file Pin
George L. Jackson3-May-07 15:19
George L. Jackson3-May-07 15:19 
GeneralRe: Unknown missing library file Pin
esia5-May-07 19:20
esia5-May-07 19:20 
QuestionThread and ON_WM_TIMER Pin
CDRAIN2-May-07 7:47
CDRAIN2-May-07 7:47 
AnswerRe: Thread and ON_WM_TIMER Pin
led mike2-May-07 8:24
led mike2-May-07 8:24 
GeneralRe: Thread and ON_WM_TIMER Pin
CDRAIN2-May-07 11:22
CDRAIN2-May-07 11:22 
QuestionRe: Thread and ON_WM_TIMER Pin
David Crow2-May-07 9:06
David Crow2-May-07 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.