I've been programming for many years, and in all these years I've never been introduced to how the programs are created. Therefore, I might answer a little differently than everyone who is familiar with how programs are created in Pelles-C (= I can watch TV but don't know how it works). Hope you understand what I mean.
I wildly test:
1. If I change the code and then compile, I get an error message every time.
2. If I change the code and then build xxx.exe I get error the first time but works the second time with the changes also in the exe file.
3. If I change the code and then build xxx.exe I get an error message. After that I compile and get error message.
4. If I change the code and then compile, I get an error message. After that I build xxx.exe it works with the changes also in the exe file.
If I delete the .obj and .res and do as above I get the same result.
I noticed one thing:
When I click Build xxx.exe the first time, the .obj file is created.
When I click Build xxx.exe the second time, the .res file is created and the changes in the code are also changed in the xxx.exe file.
Could it have something to do with the resource file?
Otherwise I have no problem with creating exe software, it works as before the error with the difference that I have to build twice, the second time it works.
The difference between "Build" and "Run" is that "Run" first builds and then starts the .exe file as well?!