40723150 CD2020

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • 可攜系統
    • 配置系統
    • pip
    • SSH
    • Q&A
  • 紀錄
    • W2
    • W3
    • W4 W5
    • W7
    • W10
    • W11
    • W12
    • W14
    • W15
    • W16
  • CMS
    • VirtualBox
    • 指定網路位連線
    • 上傳檔案
    • 虛擬主機 Q&A
  • Service
W2 << Previous Next >> W4 W5

W3

Webots設定

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

<!-- 安裝 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 程式:

// hello.c
#include <stdio.h>

int main() {
    printf("Hello, world!\n");
    return 0;
}

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

gcc -o hello.exe hello.c

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



W2 << Previous Next >> W4 W5

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