Monday, May 24, 2010

How to eliminate Visual C++ unresolved external symbol error???

Compiling...


hello.cpp


Linking...


LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16


Debug/hello.exe : fatal error LNK1120: 1 unresolved externals


Error executing link.exe.





hello.exe - 2 error(s), 0 warning(s)


======================================...


\\The following is the source code








#include %26lt;iostream%26gt;





using namespace std;





int main(){


cout %26lt;%26lt; "Hello" %26lt;%26lt; endl;


return 0;


}


======================================...





What is that annoying error????


I copied the code and pasted it in DevC++, it had no problem running.





Sometimes, I re-create a new project and paste the code there, the error sometimes disappers and comes back again.

How to eliminate Visual C++ unresolved external symbol error???
just have a look at the link....





hope it helps!

flowers for algernon

No comments:

Post a Comment