compiler gone haywire?!

This is a discussion on compiler gone haywire?! within the C Programming forums, part of the General Programming Boards category; ahh!!! ok so here's the situation... its a class, so the compiler is on a main computer in which we ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    5

    compiler gone haywire?!

    ahh!!!
    ok so here's the situation...
    its a class, so the compiler is on a main computer in which we can write our programs (pico), compile, and turn in. no big deal.

    i was writing a program, compiling, all was working well... until i disconnect from the server, log back on about an hour later to continue programming away....

    NOW i get this message, everytime i try to compile ANYTHING, even previous programs i KNOW work PERFECTLY:

    /usr/ccs/bin/ld: Can't create a.out
    /usr/ccs/bin/ld: Text file busy
    collect2: ld returned 1 exit status

    i thought the compiler may just have been dead or something, but my friend logged onto the computer, and he can compile anything just fine!

    whats going on and how do i fix it?!

    thanks, im sort of... aggravated... right now.

    oh, and its a gcc compiler.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Your program is possibly still running?

    To see if this is so:
    >ps -ef | grep a.out

    Then use kill to stop it.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Use the "-no-haywire" flag.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,803
    Maybe thats why I always get errors when i code . Thanks for the new compiler switch quzah
    Woop?

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    5
    Quote Originally Posted by Hammer
    Your program is possibly still running?

    To see if this is so:
    >ps -ef | grep a.out

    Then use kill to stop it.
    *phew*
    i knew nothing of these IDs, and their uses when it comes to killing a program...
    but after some trial, fair amounts of error and guessing... i got it and learned.
    awesome.
    thanks.

  6. #6
    Registered User
    Join Date
    Nov 2004
    Location
    bombay
    Posts
    6
    check if a.out is created by ls a.out
    unix is not my specialties you now but try it
    if gcc doesnot work use the cc compiler and test for gcc compatibility problems

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM

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