compiler not noticing changes in main.c

This is a discussion on compiler not noticing changes in main.c within the C Programming forums, part of the General Programming Boards category; Hi everybody, I'm trying to bring a software which was written last summer to run again and I got some ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    2

    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.

    regards.

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

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

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

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    2
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,506
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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