Error 1 error LNK2005: _main already defined in Prog 1.obj

Hi, I'm new in C++ language and in the forum.
When I try to build my .exe I get these two errors:
[
Error	1	error LNK2005: _main already defined in Prog 1.obj	C:\Users\bes\documents\visual studio 2010\Projects\Punimi 1\Punimi 1\review.obj	Punimi 1
Error	2	error LNK1169: one or more multiply defined symbols found	C:\Users\bes\documents\visual studio 2010\Projects\Punimi 1\Debug\Punimi 1.exe	1	1	Punimi 1


At my first program it went all right, but when i tried to do some retrieving(practising)..i got these two errors, what's the matter. Did I do something wrong?
I'm working in Microsoft Visual Studio 2010. Windows Vista Ultimate..
Thanx
You have 2 main() functions in the same project. You can't do that.

If you want to make a second program, you need to make a separate project. Basically it's 1 project = 1 program.

It looks like you just make a new source file and added it to the same project, which isn't the same thing.
Thanks very much Disch, you were right..
Topic archived. No new replies allowed.