problem increating hello world program

#include <stdio.h>
#include <iostream>

using namespace std;

int main(void)

{
std::cout <<"hello world!!!";

return 0;
}

when debug:

1>------ Build started: Project: ok, Configuration: Debug Win32 ------
1> Enter_name.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 ==========

Can any body guide me please????
first of all, if you have
using namespace std;
you dont need to write std::cout instead just write cout
also you dont need stdio.h and what compiler do you use? and i suggest if you dont use vc 2010 to use it and try making a new file because its corrupted somehow
Last edited on
it compiled for me, and wheres your "stdafx.h" ? (maybe its something unique to vc 10)
make a new .cpp and write it again..also u don't really need ''stdafx.h" unless you are using pre compiled headers if ur making alot of ur own don't bother with it as it will slow ur entire project build time down.
Topic archived. No new replies allowed.