Hi Everybody, I am new to this programming side. I Like to learn about c++. I found an simple tutorial to make trough c++. I wrote the codes correctly. When i compile there is no errors. But when i execute .exe [CTRL+F5] there are 2 errors. does any body have any solution for these errors?
I am using Microsoft Visual C++ 6.0
OS - Windows XP Professional Service pack 3
This is the code what i am working with
Code:
// my first program in c++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!/n";
cout << "I'm a C++ Programer";
return 0;
}
This is the message which appears when i compile it.
--------------------Configuration: Learning - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
1st.cpp
1st.obj - 0 error(s), 0 warning(s)
This the message which appears when i execute the .exe file.
--------------------Configuration: Learning - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Learning.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Learning.exe - 2 error(s), 0 warning(s)
does any body have any idea about this ?
I am glad to see a solution for this.