Skip to content

olelieb/TechReady

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Installing the Tools

Windows Only

  1. Open Administrator Terminal

  2. Install WSL for Windows

    wsl --install
    wsl --install Ubuntu-22.04
  3. Start WSL in Terminal with

    wsl

    (Or as app)

WSL, Linux, MacOS

  1. (WSL/Ubuntu): Update package lists and System

    sudo apt update   # update the Ubuntu package lists
    sudo apt upgrade  # actually install new packages/versions 
  2. Install compiler\

    Mac:

    xcode-select --install

    WSL/Ubuntu:

    sudo apt install build-essential

    If you want to use clang, also:

    sudo apt install clang
  3. Now try the compiler command:

    gcc

    Or if you downloaded clang:

    clang

    You should see the compiler ask for an input file

  4. Install editor (VSCode/CLion/NVim/other)

  5. Try to compile hello world

Compiling Code

  1. Move to helloWorld.c file in terminal

  2. Compile the file

    clang helloWorld.c -o helloWorld.out
  3. Run the file

    ./helloWorld.out

Tips & Tricks

  1. You can use the wsl command to execute linux commands in the windows Terminal

    wsl <command>

    This means you can open a folder in VSCode directly in the wsl from windows:

    wsl code .  #open the current folder ( . ) in vscode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages