main returns int -- compiler returns nonsense

This is a discussion on main returns int -- compiler returns nonsense within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Sometimes, I rather hate compilers: Code: encs_driver.cc:16: error: extraneous `int' ignored encs_driver.cc:16: error: `main' must return `int'...

  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,399
    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,825
    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, 07: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, 06:15 AM
  5. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-01-2003, 11:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21