|
-
July 14th, 2002, 01:30 AM
#1
Banned
C Problem
i have a problem i do not either undestand or know how to solve..
i am using visual c++ 6 ( i am new to c++)
considering the following simple code
#include <fstream.h>
#include <iostream.h>
int main(void)
{
ofstream my_file("c:\test.txt");
my_file<<"This text will now be inside of test.txt";
my_file.close();
return 0;
}
the compilation goes fine
but when i try to build the exe i get the following:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Hello3.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
could anyone tell me what's going on? thanx in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|