How Did I Mess Up Such A Simple Program?

#include <iostream>
using namespace std;

int main()
cout << "Hello there world!";

return 0;

I copied this from my textbook, but I get this error message when I try to run it.

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

If it matters I am using Microsoft Visual C++ 2010 Express.

Any tips on learning C++ from scratch?
This has come up a number of times previously.
See if this helps

if not we'll try something else..
When I first started programming, I think I got an error like that... (This may not be the the answer to your question, but i'll give it a shot.)

If you are using a console application, then this might be your problem: When you've name your project and clicked 'ok' it, it should pop with some window with a 'next >' button and a 'finish' button. Click the 'next >' button and you will come up with 'Application Settings'. Go to 'Additional Options' and change your choice to 'Empty Project'. (Again, I'm sorry if this doesn't work.)
Last edited on
Topic archived. No new replies allowed.