QuestionCompiler Error: Visual Studios 2012 Ultimate

Posts 17 of 7 · Page 1 of 1
Compiler Error: Visual Studios 2012 Ultimate
Okay, so I've been trying to compile this but I keep getting the same error:

On my first "Hello World" Console Application... It worked fine, but on every sing one afterward it has been giving me this same error.
PS: My Linker is already set to Console, so that's not the problem.
*Bump* Please help someone
*Edit* Solved, turns out the function "main" is case sensitive. I used a capital M.
Quote Originally Posted by iTangerine View Post
*Edit* Solved, turns out the function "main" is case sensitive. I used a capital M.
EVERYTHING in C++ is case sensitive, not just the 'main' function.


---------- Post added at 01:32 AM ---------- Previous post was at 01:30 AM ----------

Quote Originally Posted by AeroMan View Post
main should be in low case, and it does not need a return
I was under the impression any function that isn't void needs to return something...?
Quote Originally Posted by Disturbed View Post


EVERYTHING in C++ is case sensitive, not just the 'main' function.


---------- Post added at 01:32 AM ---------- Previous post was at 01:30 AM ----------



I was under the impression any function that isn't void needs to return something...?
I think he mean't that he could use void main() instead of int main(), but I'm pretty sure that void main() isn't supported anymore
main should be in low case, and it does not need a return
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?