Work1 <<
Previous Next >> Work2
webots設定
MSYS2裡建立Windows 64位元環境下gcc編譯環境,安裝mingw-w64-x86_64-gcc 與 mingw-w64-x86_64-toolchain。
|
1
2
3
4
|
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-toolchain
|
安裝完成後,測試編譯以下簡單的 C 程式:
|
1
2
3
4
5
6
7
|
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
|
存在 tmp\c_ex 目錄下,命名為 hello.c然後利用:
表示要將編譯 hello.c 的 output 設為 hello.exe 完成後,直接執行 hello.exe
Work1 <<
Previous Next >> Work2