This is more of an IDE question than a language issue; however, I writing in C and using Code::Blocks 13.12 on three different machines. Two Windows 7 desktops and one Windows 7 laptop which dual boots into Ubuntu 14.1 (I think.)
I move around frequently from office, to home, to coffee shop so naturally I upload my code to my dropbox before heading to a different location.
I know Code::Blocks compiles and runs on each machine just fine and I've been working between machines for quite some time without issue. That being said I have encountered a recent problem with code that runs on one machine crashing during execution on another.
Here is my process:
Work Computer:
1. Setup a project
2. Link any needed libraries
3. Write code
4. Compile and Run (Happy face)
6. Upload to dropbox
Laptop:
1. Download code
2. Re-link libraries
3. Rebuild code.
4. Run code (Happy Face)
5. Upload to dropbox
Home Computer:
1. Download code
2. Re-link libraries
3. Rebuild code.
4. Run code (Frownie Face)
Since the code itself doesn't change between the time it is uploaded to the time it is downloaded, I am confused as to why it fails to run. More specifically, it crashes. Since Windows isn't throwing me any error codes it's hard for me to diagnose the issue. I am hoping someone else has encountered a similar problem and found a resolution.