FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
No Result
View All Result

VS Code setup for C and C++ development – building and debugging in Windows with Clang MSYS2

admin by admin
February 18, 2020
in Lập Trình Linux
6
VS Code setup for C and C++ development – building and debugging in Windows with Clang MSYS2



How to use VS Code to build and debug C and C++ programs under Windows 10 with Clang 8 from MSYS2. We present a debugging example.

Install Clang on Windows 10 with MSYS2 MinGW-w64 tutorial:

My settings, tasks and launch JSON files:

GDB install command (used in the MSYS2 terminal):
pacman -S mingw-w64-x86_64-gdb

Build command example for a C program:
clang -std=c17 -Wall -Wextra -pedantic test.c -o test

Build command example for a C++ program:
clang++ -std=c++17 -Wall -Wextra -pedantic test.cpp -o test

Nguồn:https://ftlinuxcourse.com/

Xem thêm Bài Viết:

  • Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
  • Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
  • Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
  • Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
  • Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Tags: Youtube
Previous Post

Cài Windows 10 trên máy tính ảo VMWare

Next Post

Linux embedded Unit 9 Hello world kernel module

Next Post
Linux embedded Unit 9 Hello world kernel module

Linux embedded Unit 9 Hello world kernel module

Comments 6

  1. juan carlos gomez says:
    2 years ago

    can i get an explanation on how to use vs code for c++ on a mac? please and thank you.

    Reply
  2. SkullboyBZ says:
    2 years ago

    For some reason, I tried to run an exe using ./Hello in the terminal but it doesn't show anything, can you help?

    Reply
  3. Luis Marquez LM says:
    2 years ago

    I couldn't make it work on version 1.39
    had to downgrade to 1.33 for it to work

    major change seems to be task.json is now independent and "preLaunchTask": on launch .json gives an error

    Reply
  4. Sandro Tamborindegui says:
    2 years ago

    My setup gives this error:
    tam12@SANDRO-Dell MINGW64 /c/DEV

    $ clang -std=c17 -Wall -Wextra -pedantic test.c -o test

    test.c:11:2: warning: no newline at end of file [-Wnewline-eof]

    }

    ^

    1 warning generated.
    i followed all instructions

    Reply
  5. Seif Mosaad says:
    2 years ago

    When i tried to compile a C++ File it Said "$ clang -std=c17 -Wall -Wextra -pedantic test.cpp

    error: invalid argument '-std=c17' not allowed with 'C++'" …….What should i do ?

    Reply
  6. 10e999 says:
    2 years ago

    very nice.
    Video request:
    VS Code setup for C and C++ development – building and debugging in Windows with WSL ubuntu (gcc, gdb, make)

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

January 17, 2021
Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

June 1, 2021
Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

January 26, 2021
Địa chỉ bán đèn tuýp LED Philips uy tín và chất lượng trên thị trường?

Bán đèn tuýp led Philips – Skyled

July 27, 2020
Lựa chọn chủ đề in áo thun phù hợp

Lựa chọn dịch vụ in áo thun cotton cần lưu ý gì?

August 2, 2020
Cần xác định được điểm đặt pallet cao nhất để mua xe

Bí quyết chọn mua xe nâng điện đẩy tay

August 3, 2020

Về Chúng Tôi

Báo ftlinuxcourse.com 24h – Đón xem những tin tức mới nhất về tình hình chính trị, xã hội, an ninh trật tự, văn hóa – giải trí, thể thao, thông tin trong ngày.

  • Liên Hệ
  • Chính Sách Bảo Mật

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.