Program design in C

This is a discussion on Program design in C within the C Programming forums, part of the General Programming Boards category; I tried to compile my program and was un able to do so because this error posted at the end, ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    Question Program design in C

    I tried to compile my program and was un able to do so because this error posted at the end, as pasted below: Sentence in parentheses is the problem.
    <math.h> is the library I was working in for my homework and somewhere I really messed up. This sentence shows up on all of my files associated with my homework if I were to try to compile them.

    triton% gcc testray.c -lm
    cc1: (No space left on device: error closing /var/tmp//ccqni3N3.s)

    Any help would be appreciated.

    Sincerely,

    Bob

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    What does your thread title have to do with the question?

    How much free disk space do you have left? GCC is complaining that it cannot save a temporary file due to lack of space.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Try df -h to see how much disk space is free on whatever partition /var/tmp is located on. You may have lots of free disk space, but have /var/tmp completely stuffed if it's on a different partition. If it is full, delete something from it, resize the partition (difficult), or use a different temp directory; I'm sure GCC lets you choose the temporary directory for it to use.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Quote Originally Posted by CornedBee
    GCC is complaining that it cannot save a temporary file due to lack of space.
    Or lack of permissions.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by Kennedy
    Or lack of permissions.
    Only if the system is so broken that it returns ENOSPC/EFBIG instead of EROFS/EACCES from open() and friends.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. program design question
    By Chaplin27 in forum C++ Programming
    Replies: 1
    Last Post: 06-23-2005, 08:18 PM
  2. user input and program design
    By Chaplin27 in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2005, 09:53 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Unicode & Good Program Design :: C++
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-05-2002, 05:09 PM

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