g++ not registering file changes? UPDATE: FIXED

irishScott

Lifer
Oct 10, 2006
21,562
3
0
So I'm overloading the assignment operator for a CS lab, and I put in some debugging text to test it out. Worked, so I took out the debugging text and re-compiled. Text still popped up. I even commented out the entire function in the h file. Still acted like it'd never been changed.

I had to comment out the line calling the operator to get it to stop, and now it won't start up again. *sigh*

I've run into this before, but it magically fixed itself so I didn't pay it any mind at the time.

Setting:
1. Using eclipse 3.3.2 via OpenSSH streaming X session
2. makefile project
3. c++
4. I didn't forget to save.
5. OS is a form of Unix.


My attempts:
1. Manually checked the workspace directory. No gch files to worry about.
2. Reconnected and restarted eclipse. No effect.
3. Deleted .o files manually and recompiled. No effect.


Update: So I manually deleted the binary and now it works again. Probably just a glitch somewhere.
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
FWIW, it sounds like your Makefile doesn't list the correct file dependencies. Post here or in Programming and us nerds will look at it for you.