Reputation: 893
I am developing a C++ application using code::blocks. At the institute, we have debian systems and all my files (source, input etc) are on the institutes servers. The servers are *nix based but I am not sure about the details that might be relevant here. My personal laptop is running windows 10. I can map the network drives to my laptop and then use code::blocks to work on the project.
Problem is, on my windows machine I have to Cygwin GCC but on the debian systems I have GNU GCC. If I open the project using code::blocks in Windows, then the 'project.cbp' files is overwritten to use Cygwin, and reverse if I open the project in linux.
As a result, when I make a switch between OS, I have to, sort of, re-establish the project (in linux this means reloading all files, and in windows I need to create a new project) which is a bit irritating. Is there any possible setting through which I can use the project in both windows and linux simultaneously? I imagine that if I can install GNU GCC in windows (which I think is not possible) or cygwin in debian (which I also think is not possible) then the problem would be solved.
Upvotes: 0
Views: 449
Reputation: 26286
It's probably the time to learn how to Cmake on Codeblocks.
With Cmake, you can use the script to decide how to treat every different operating system.
Upvotes: 1