"Source Modified, rebuild?"
Author |
Message |
ihsh
|
Posted: Tue Aug 31, 2010 2:47 pm Post subject: "Source Modified, rebuild?" |
|
|
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:
Quote: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TerranceN
|
Posted: Tue Aug 31, 2010 3:36 pm Post subject: RE:"Source Modified, rebuild?" |
|
|
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? |
|
|
|
|
![](images/spacer.gif) |
ihsh
|
Posted: Tue Aug 31, 2010 4:34 pm Post subject: RE:"Source Modified, rebuild?" |
|
|
I am using Turbo C. That's an IDE, right? |
|
|
|
|
![](images/spacer.gif) |
TerranceN
|
Posted: Tue Aug 31, 2010 7:09 pm Post subject: RE:"Source Modified, rebuild?" |
|
|
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. |
|
|
|
|
![](images/spacer.gif) |
michaelp
![](http://compsci.ca/v3/uploads/user_avatars/152966434478120653a049.png)
|
Posted: Tue Aug 31, 2010 8:26 pm Post subject: RE:"Source Modified, rebuild?" |
|
|
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. |
|
|
|
|
![](images/spacer.gif) |
chrisbrown
![](http://compsci.ca/v3/uploads/user_avatars/18814724584bcbb8192aae8.png)
|
Posted: Wed Sep 01, 2010 9:37 am Post subject: RE:"Source Modified, rebuild?" |
|
|
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? |
|
|
|
|
![](images/spacer.gif) |
|
|