Thread: ubuntu c file compile error gcc

  1. #1
    Registered User
    Join Date
    Mar 2014
    Posts
    95

    ubuntu c file compile error gcc

    ubuntu c file compile error gcc-977919untitled-png

    what can i do to fix ? why do i get the error ?
    thank you

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    782
    Please post a copy of the source code, main.c

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    1,012
    There is no "-errors" flag for gcc. Instead, you're passing the -e flag with the argument "rrors". I'm not sure what you want -errors to do, but I would at least suggest adding -Wall to turn on a lot of useful warnings. If you want warnings to be treated as errors, use -Werror as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. net beans 7.2 unable to compile c file(some make error)
    By Ojasvi22 in forum C Programming
    Replies: 6
    Last Post: 01-28-2013, 11:49 PM
  2. Replies: 7
    Last Post: 09-18-2011, 11:45 AM
  3. Error on Ubuntu/Linux but not Windows :O!
    By Akkernight in forum C++ Programming
    Replies: 9
    Last Post: 03-19-2009, 04:51 AM
  4. GCC compile error coz of file pointer
    By Shadow in forum C Programming
    Replies: 5
    Last Post: 04-20-2002, 12:50 PM
  5. header file compile error
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 02-23-2002, 06:28 AM