Compiling error (need help)
I am using Microsoft VC++ 6.0. When I try using 'afx.h' and 'iostream.h' at the same time. Nothing goes wrong unless I use either 'cin' or 'cout'. When I compile I get the following:
Code:
Compiling...
Text1.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/Text1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Text1.exe - 3 error(s), 0 warning(s)
Here is the sample piece of code that generated the output above, although anything I have tried that has all of these statements in it also genorates the same error.
Code:
#include <afx.h>
#include <iostream.h>
int main()
{
CString the_text = "Hello World!";
cout << the_text;
return 0;
}
I would like some help on this, and any information would be usefull.
-JLBSchreck