Click here to Skip to main content
15,897,704 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C++ Linux Development on Windows Pin
Joe Woodbury20-May-21 9:09
professionalJoe Woodbury20-May-21 9:09 
GeneralRe: C++ Linux Development on Windows Pin
Richard MacCutchan19-May-21 3:37
mveRichard MacCutchan19-May-21 3:37 
GeneralRe: C++ Linux Development on Windows Pin
abmv19-May-21 4:36
professionalabmv19-May-21 4:36 
GeneralRe: C++ Linux Development on Windows Pin
Mircea Neacsu19-May-21 5:19
Mircea Neacsu19-May-21 5:19 
GeneralRe: C++ Linux Development on Windows Pin
riki_p19-May-21 21:26
riki_p19-May-21 21:26 
GeneralRe: C++ Linux Development on Windows Pin
stephen.hazel20-May-21 5:26
stephen.hazel20-May-21 5:26 
GeneralRe: C++ Linux Development on Windows Pin
giulicard19-May-21 22:20
giulicard19-May-21 22:20 
GeneralRe: C++ Linux Development on Windows Pin
Stuart Dootson20-May-21 1:13
professionalStuart Dootson20-May-21 1:13 
  1. Ubuntu 18.04, using a mix of the apt and nix package managers (apt because it's the standard Ubuntu one, nix where I want newer versions of tools like CMake and ninja than are offered by apt in 18.04).
  2. WSL1 (I don't use WSL2 because I want to work on a Windows filesystem, and WSL1 is better in that scenario).
  3. VSCode running under Windows (possibly using the Remote extension, but with WSL, VSCode doesn't necessarily need that).
  4. I do builds using a WSL bash prompt running in VSCode's integrated terminal. However - you can run a WSL command-line from a CMD or Powershell prompt too. I actually perform Linux and Windows builds from WSL bash. VSCode's 'tasks' can be used to do the builds as well.
    I use CMake and ninja to perform builds - I find CMake the simplest way to have a single cross-platform build description.
  5. On Windows, MSVC. On Linux, I build with g++ but use clang's static analysis tools (clang-tidy primarily). oh - unless I'm doing a fuzzing build, when I use clang and libfuzzer.
  6. I use VSCode for all debugging. It integrates with the native debugger that (I guess) Visual Studio uses, and for WSL, it fires up a gdb running under a WSL process and automates it using GDB's 'machine interface'.
  7. I use command-line Git (usually the Linux version, but if I use git.exe at the command prompt rather than git, I'm using Windows native Git rather than Linux Git) and also GitKraken running under Windows. The only concessions I make to Windows are some git config settings: core.filemode is set to false and core.ignorecase to true.
  8. Can't remember anything offhand...
I've been working like this very happily since 2018, doing Windows and Linux builds in tandem. The way I work is to develop under Windows primarily, then when I reach some significant point build under Linux (with static analysis) and run unit tests to ensure that I have parity between platforms.

I have some projects with Windows-only features - I find that's easy enough to do with CMake.

The only time I break out Visual Studio is if I need disassembly level debugging - one of the projects I work on has a JIT compiler, and debugging the JITted code needs that really. Aside from that, I often find myself developing small, self-contained features in Compiler Explorer, as that makes it easy to use libraries I often use (fmt, MS-GSL, Catch2) in a single source file without needing any build system.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p


modified 20-May-21 9:18am.

GeneralRe: C++ Linux Development on Windows Pin
Deoclecio Freire20-May-21 1:51
professionalDeoclecio Freire20-May-21 1:51 
GeneralRe: C++ Linux Development on Windows Pin
hur10forcer1020-May-21 3:04
hur10forcer1020-May-21 3:04 
GeneralRe: C++ Linux Development on Windows Pin
Joe Woodbury20-May-21 9:03
professionalJoe Woodbury20-May-21 9:03 
GeneralRe: C++ Linux Development on Windows Pin
KateAshman24-May-21 21:51
KateAshman24-May-21 21:51 
GeneralCCC - Solution Pin
pkfox19-May-21 1:59
professionalpkfox19-May-21 1:59 
GeneralRe: CCC - Solution Pin
OriginalGriff19-May-21 2:22
mveOriginalGriff19-May-21 2:22 
GeneralRe: CCC - Solution Pin
pkfox19-May-21 2:33
professionalpkfox19-May-21 2:33 
GeneralRe: CCC - Solution Pin
OriginalGriff19-May-21 2:47
mveOriginalGriff19-May-21 2:47 
GeneralRe: CCC - Solution Pin
pkfox19-May-21 3:09
professionalpkfox19-May-21 3:09 
GeneralRe: CCC - Solution Pin
musefan19-May-21 5:29
musefan19-May-21 5:29 
QuestionUnit Testing with Selenium - Not a programming Question Pin
devenv.exe19-May-21 1:47
professionaldevenv.exe19-May-21 1:47 
RantCovering your backside versus actually helping Pin
Rich Leyshon19-May-21 1:11
Rich Leyshon19-May-21 1:11 
GeneralRe: Covering your backside versus actually helping Pin
OriginalGriff19-May-21 1:15
mveOriginalGriff19-May-21 1:15 
GeneralRe: Covering your backside versus actually helping Pin
W Balboos, GHB19-May-21 1:45
W Balboos, GHB19-May-21 1:45 
GeneralRe: Covering your backside versus actually helping Pin
Richard MacCutchan19-May-21 3:31
mveRichard MacCutchan19-May-21 3:31 
GeneralRe: Covering your backside versus actually helping Pin
Rich Leyshon19-May-21 3:43
Rich Leyshon19-May-21 3:43 
GeneralRe: Covering your backside versus actually helping Pin
Richard MacCutchan19-May-21 4:20
mveRichard MacCutchan19-May-21 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   267 votes