Reputation: 41
Thanks.
So when I write some code into codeblocks using c language and run it, granted the code is error free, it runs fine. Subsequent modifying and running of the code only produces the results of the first time I ran the code unless I delete the executable and object files. In other words it is not updating to the code that I modify. I am running the latest version of CodeBlocks. Is this a setting I need to change?
Update:
After reading the answers and comments below, I was able to correct the problem. As many suggested I indeed needed to click "build and run". I know it's such a basic question but I'm new to programming so thanks for your help. The confusion came when I would first click to "run" a code it would automatically ask me if I wanted to build it first. So I just thought every time I clicked "run" it would automatically build it first.
Upvotes: 4
Views: 1853
Reputation: 470
In Codeblocks, there should be a "Build and Run" button to fix your problem assuming that you were only pressing "run" before you read this
Upvotes: 1