Every time I try to build and debug the simple Hello World Code I get an error stating the following:
1>------ Build started: Project: helloworld, Configuration: Debug Win32 ------
1> test.cpp
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
And im using this code:
#include <iostream>
using namespace std;
void main() {
cout << "Hello, World!" << endl;
}
and i think its whenever i use Main()
, they tell me not to use it or something. help!!!