40723151 cd2020 協同產品設計實習

  • Home
    • Site Map
    • reveal
    • blog
  • About
    • 組員名單
  • Develop
  • 期末報告
  • TOP 0 文章
    • 心得
  • 可攜系統
    • 安裝pip
    • SSH
  • WORK
    • Work1
      • webots設定
    • Work2
      • xelatex
    • Work3
      • OBS串流設定
    • Work4
      • 瞭解四輪機器人
    • Work5
      • VirtualBox
    • Work6
    • Work7
    • Work8
  • 問題解決
    • push衝突
Work1 << Previous Next >> Work2

webots設定

MSYS2裡建立Windows 64位元環境下gcc編譯環境,安裝mingw-w64-x86_64-gcc 與 mingw-w64-x86_64-toolchain。

1
2
3
4
<!-- 安裝 mingw-w64-x86_64-gcc -->
pacman -S mingw-w64-x86_64-gcc
<!-- 安裝 mingw-w64-x86_64-toolchain -->
pacman -S mingw-w64-x86_64-toolchain

安裝完成後,測試編譯以下簡單的 C 程式:

1
2
3
4
5
6
7
// hello.c
#include <stdio.h>
 
int main() {
    printf("Hello, world!\n");
    return 0;
}

存在 tmp\c_ex 目錄下,命名為 hello.c然後利用:

1
gcc -o hello.exe hello.c

表示要將編譯 hello.c 的 output 設為 hello.exe 完成後,直接執行 hello.exe


Work1 << Previous Next >> Work2

Copyright © All rights reserved | This template is made with by Colorlib