r/cpp • • Mar 04 '26

Developing on Linux for Windows

I'm not a C++ dev. I love my linux + tmux + vim setup. I might pick up C++ for my next job. The company builds a Gui application that runs on Windows and deals with other components like sensors I guess.

They develop in a Windows 10 VM with a IDE I couldn't identify. It wasn't Visual Studio or VS Code or a Jetbrains IDE. So my question is, would it be possible to have my Linux setup while working there?

I guess there's a reason why they are developing inside of a Windows 10 VM and not locally.

32 Upvotes

22 comments sorted by

View all comments

Show parent comment

5

u/tyler1128 Mar 05 '26

It doesn't have to do with Itanium beyond historically, but the most commonly used ABI for C++ is called the Itanium ABI. There's a reason I said "with some incompatibilites". Name mangling and such is also covered by the Itanium ABI, which is used by most C++ compilers, and really most native compilers in general including LLVM. Things like passing complex structs by value is somewhere many compilers get it wrong, for instance. There are many other reasons you can run into link errors, but both gcc and clang (and LLVM clang is based on) use the Itanium ABI.

2

u/tyler1128 Mar 05 '26

For some reading, here's a post on name mangling in the C++ Itanium ABI.

You are correct that C++ does not have a standard ABI, but for x86_64, the Itanium ABI is the closest thing to universally used.