Results 1 to 7 of 7
  1. #1
    iTangerine's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    0
    My Mood
    Fine

    Question 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.

  2. #2
    iTangerine's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    *Bump* Please help someone

  3. #3
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,100
    My Mood
    Aggressive
    include SDK... ^^






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


  4. #4
    iTangerine's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    *Edit* Solved, turns out the function "main" is case sensitive. I used a capital M.
    Last edited by iTangerine; 05-13-2013 at 04:16 PM.

  5. #5
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    main should be in low case, and it does not need a return

  6. #6
    Disturbed's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    10,472
    Reputation
    1267
    Thanks
    2,587
    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 Alex_Agnew 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...?


  7. #7
    Gab's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,716
    Reputation
    1755
    Thanks
    1,543
    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

Similar Threads

  1. Replies: 33
    Last Post: 05-17-2014, 08:26 AM
  2. [Release] Visual Studio 2012 Ultimate [Key]
    By Echo Phyber in forum Programming Tools
    Replies: 56
    Last Post: 12-10-2013, 09:46 AM
  3. [Help] visual studios 2010 ultimate book's?
    By Cheater1990 in forum C++/C Programming
    Replies: 14
    Last Post: 06-15-2011, 05:16 PM
  4. [Discuss]Visual Studio 2012
    By NextGen1 in forum Coders Lounge
    Replies: 8
    Last Post: 01-17-2011, 01:38 AM
  5. [Share]Visual Studio 2010 Ultimate Key
    By ilikewaterha! in forum Visual Basic Programming
    Replies: 26
    Last Post: 08-30-2010, 08:09 AM