There's no problem to use the same code and project files if you leave the OS specific settings under
Build options ...empty.
You only have to use the same compiler(-name) under linux and windows and set the directories executables and so on under
Settings -> Compiler and debugger.
If you need project specific settings you don't want to use for your any of the standard compilers you can create a special compiler there.
I tried it and it works fine. At least for me. It even works if change the OS and build without cleaning.
Of course you can also cross-compile and build win-executables under linux without the need to change to Win
.