Hi,
I'm hoping someone can help me. I'm using Visual C++ 6.0 on Win XP (for a university module). I'm completely new to C++ and haven't used VC++ before.
When I try to build this code:
#include <iostream.h>
int main()
{
cout << "Hello World" << endl;
return 0;
}
I get this error:
libcd.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I've also tried this:
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
...and got the same error.
I've gone through the FAQs on this forum, made sure the path to libs folder is in the project settings, put wWinMainCRTStartup as my entry point symbol, tried adding the libcd.lib in the library modules, but nothing changes.
Am I missing something fundamental here?
Is there some newer version of cout and endl I can use? As I have no trouble running the sample code.
Please help!
Delameko Stone
I'm hoping someone can help me. I'm using Visual C++ 6.0 on Win XP (for a university module). I'm completely new to C++ and haven't used VC++ before.
When I try to build this code:
#include <iostream.h>
int main()
{
cout << "Hello World" << endl;
return 0;
}
I get this error:
libcd.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I've also tried this:
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
...and got the same error.
I've gone through the FAQs on this forum, made sure the path to libs folder is in the project settings, put wWinMainCRTStartup as my entry point symbol, tried adding the libcd.lib in the library modules, but nothing changes.
Am I missing something fundamental here?
Is there some newer version of cout and endl I can use? As I have no trouble running the sample code.
Please help!
Delameko Stone