Click here to Skip to main content
15,891,473 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
Jon McKee19-May-21 15:18
professionalJon McKee19-May-21 15:18 
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 
Greg Utas wrote:

  • Which Linux do you run? Debian? Ubuntu? RedHat?
  • Ubuntu on 20.04 LTS on WSL2 using Windows 10 Pro insider ed. 21H2 Build 21382.1000 (Yes, I couldn't resist testing WSL with "native" graphics)

  • How do you run it on your Windows machine? In a VM? If so, which one? Or using WSL?
  • Lastest WSL 2 based on MS' Mariner distro

  • How do you edit? VS2017? VS2019? VS Code? vi? Laugh | :laugh:
  • VS Code, absolutely! Of course with all the extensions required for editing, building, and debugging C ++ applications.

  • How do you build? Within Linux? From within VS?[^]
  • I personally use VS Code with the GUI running on Windows and connected remotely to WSL. With the extension for VS Code that supports CMAKE you can easily and conveniently use VS Code on Windows to develop and debug both graphical and console applications on Linux. Note: it does not cross-compile on Windows for Linux; it uses the Linux toolchains on Linux but from an IDE on Windows (i.e. VS Code). It is also very advisable to use Windows Terminal to open WSL console sessions or to connect to Linux with ssh as well.

  • Which compiler do you use? g++? clang?
  • Both gcc (lastest, g++-11) and clang-12 (experimental).

  • How do you debug? Within Linux? If so, which debugger? Or remotely, from within VS?
  • gdb, lldb, With VS Code.

  • How do you interface to GitHub? Within Linux? Using the VS plug-in?
  • With git (command line, i.e. bash).

  • What should be avoided?
  • I had a lot of difficulties using wxWidgets due to binary incompatibility between libraries of different versions. Furthermore, many applications installed with apt also suffer from the above problem. Anyway, I have tested qtcreator (qt5) and it works fine. I also used glade to design a small GUI for gtk and linked it to a C++ project (g ++) I also tested it with rustc.
    Extensions I've installed in VS Code to write Linux programs are:

  • C/C++ IntelliSense, debugging, and code browsing. (ms-vscode.cpptools)
  • C/C++ Extension Pack (ms-vscode.cpptools-extension-pack)
  • C++ Intellisense (austin.code-gnu-global)
  • CMake (twxs.cmake)
  • CMake Tools (ms-vscode.cmake-tools)
  • Regards.

    modified 20-May-21 4:28am.

    GeneralRe: C++ Linux Development on Windows Pin
    Stuart Dootson20-May-21 1:13
    professionalStuart Dootson20-May-21 1:13 
    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 

    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.