
-----------------------------------
ihsh
Tue Aug 31, 2010 2:47 pm

&quot;Source Modified, rebuild?&quot;
-----------------------------------
Sorry for asking simple questions repeatedly, but I have a very troubling problem when trying to run some of my programs. 
Sometimes after I ran my program successfully, and wanted to run in again after editing it, I would get this message:
 Source modified, rubuild? Y/N

No matter which key I pressed, the program would run the way before it was edited, I even checked by intentionally making some errors with my programs (and I received no error message). This could only be fixed by A)re-opening command prompt B)Save my code as another file name. 

This is very, very annoying, and can anyone tell me how to prevent this kind of problem?

-----------------------------------
TerranceN
Tue Aug 31, 2010 3:36 pm

RE:&quot;Source Modified, rebuild?&quot;
-----------------------------------
I don't use C much, so I may be wrong. I have never seen gcc ask whether to rebuild (I was under the assumption that if you gave it the command to build, it would build regardless if it has already been built before), are you using an IDE? If so, which?

-----------------------------------
ihsh
Tue Aug 31, 2010 4:34 pm

RE:&quot;Source Modified, rebuild?&quot;
-----------------------------------
I am using Turbo C. That's an IDE, right?

-----------------------------------
TerranceN
Tue Aug 31, 2010 7:09 pm

RE:&quot;Source Modified, rebuild?&quot;
-----------------------------------
You mean this? Yes that's an IDE, but please get something more modern like Dev-C++(it has a C option when creating a project).

EDIT: or if you like the command line you can always get MinGW(a set of compilers) and use gcc(the C compiler) directly.

-----------------------------------
michaelp
Tue Aug 31, 2010 8:26 pm

RE:&quot;Source Modified, rebuild?&quot;
-----------------------------------
[url=http://www.jasonbadams.net/20081218/why-you-shouldnt-use-dev-c/]Don't use Dev-C++!
 
It's old and out-dated, and there's much better options you could be using.
If you are on Windows, you have 2 options: Microsoft Visual C++, or Code::Blocks. I've heard good things about Microsoft Visual C++, but have never tried it myself.
If you are Linux, you can use Code::Blocks as well.
On Mac, I would assume you would be using XCode.
Of course, on any platform, you can always just use the terminal/command line and a text editor.

-----------------------------------
chrisbrown
Wed Sep 01, 2010 9:37 am

RE:&quot;Source Modified, rebuild?&quot;
-----------------------------------
Tossing in my ptich for Eclipse:
- Cross-platform
- Cross-language
- Actively developed
- Massive 1st- and 3rd-party plugin libraries
- Free and open-source

What's not to like?
