Thread: compiler not noticing changes in main.c

  1. #1
    Registered User
    Join Date
    Jun 2004

    compiler not noticing changes in main.c

    Hi everybody,

    I'm trying to bring a software which was written last summer to run again and I got some problems (of course...). It's a C programm, and I'm working on SuSE Linux 9.1.

    So there it is: when I try to put some printf in my main.c to understand what's goin' on, it doesn't change anything. I do "make clean" and then "make" again every time. Actually I got an error message when launching the software, so I searched the source file for this error message, found it, and I try to modify the error message itself, just to check if the modifications I did to the main.c had any effect. And it appears not...

    I'm quite new to C, and I hope my question is not too much a newbie-question for this forum. And I would appreciate any help.


    PS: I forgot to say that I verified the main.c and main.o modifications dates, and they are ok...
    Last edited by; 06-28-2004 at 05:58 AM.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Remove the executable and the .o files, then recompile.

    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jun 2004
    ok. Thanx for the help, I figured out what the problem was. The command was refering to another executable file, not updated at all. I fixed it in .bashrc with an alias.

    feelin' a little bit stupid right now

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Never call your program 'test'

    Never put . in your PATH

    Always run your program as ./program
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

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, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM