Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 "Source Modified, rebuild?"
Index -> Programming, C -> C Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ihsh




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
TerranceN




PostPosted: 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?
ihsh




PostPosted: Tue Aug 31, 2010 4:34 pm   Post subject: RE:"Source Modified, rebuild?"

I am using Turbo C. That's an IDE, right?
TerranceN




PostPosted: 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.
michaelp




PostPosted: 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.
chrisbrown




PostPosted: 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?
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: