Thread: main returns int -- compiler returns nonsense

  1. #1
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686

    main returns int -- compiler returns nonsense

    Sometimes, I rather hate compilers:
    Code:
    encs_driver.cc:16: error: extraneous `int' ignored
    encs_driver.cc:16: error: `main' must return `int'
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Heh...that's classic. Reminds me of this.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Obviously the 'int' you have in there right now is old and crusty. Replace it with a new, clean one and you should be golden.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to combine these working parts??
    By transgalactic2 in forum C Programming
    Replies: 0
    Last Post: 02-01-2009, 08:19 AM
  2. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  3. Working with random like dice
    By SebastionV3 in forum C++ Programming
    Replies: 10
    Last Post: 05-26-2006, 09:16 PM
  4. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  5. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-02-2003, 12:26 AM