ææ¥ç¨ã®æ¸ãããã®è¦æ¸
GDL(ãã¼ã¸ã§ã³2.5)ã¤ã³ã¹ãã¼ã«è¨äºã¯ãã¡ã*1H8ãªã©ã®ãã¤ã³ã³ã®ããã°ã©ãã³ã°ãã¼ã«ã¨ã㦠GCC Developer lite ã 64bit Win10 PC ã«ãã«ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ã£ãå ´åã«ããµã¤ã¼ã® Windows x64 (Windows 64bit)ããã°ã©ãã³ã°ï¼C, C++, fortran95*2ï¼ãã§ãã¡ããã®ã§ã使ãããã®ã»ããã¢ãããè¨ãï¼âæ°è¨è¿°[2022.9.23]
GCC Developer Lite (GDL)を64bitのWindows 10にインストールし hello world プログラムを作成する - あらきけいすけのメモ帳
ã¡ã¢å¸³ãªã©ã®ããã¹ãã¨ãã£ã¿ã使ã£ã¦ãã³ãã³ãâæ§è¨è¿°set PATHC2=\PROGRA~2\BestTech\GCCDEV~1\GCC\x64\bin set PATHC3=\PROGRA~3\BestTech\GCCDEV~1\GCC\x64\bin set PATH=%PATHC2%;%PATHC3%;%PATH% gcc -std=c99 -Wall -lm %~n1.cãã³ããã㦠build.bat ã¨ãããã¡ã¤ã«åã§ä¿åããCè¨èªã®ããã°ã©ã ã®ã½ã¼ã¹ã³ã¼ããã¡ã¤ã« [ãªãã¨ã].c ã build.bat ã«ãã©ãã°ã¢ã³ãããããããã*3
GCC Developer Lite å ã® GCC ã¸ã®ãã¹ã¨ãã³ãã³ãããã³ãããèµ·åãã¦ãå½ä»¤ gcc hello.c ã§å®è¡ãã¡ã¤ã« a.exe ãä½ã£ã¦ããããGDLã®[ãã¼ã«(T)]â[ã³ã³ãã¤ã«ãªãã·ã§ã³(O)]â[è¨å®ãªã¹ã]ã®[x64 (Windows)]ããã¡ãã¡è¨å®ããããç°¡åãC:\Program Files (x86)\BestTech\GCC Developer Lite\GCC\x64\binãç°å¢å¤æ° Path ã«æ¸ãå ãã*4
ç°å¢å¤æ° Path ã®è¨å®æ¹æ³
- [ã¹ã¿ã¼ã(çªãã¼ã¯)]â(ã¹ã¿ã¼ãã¡ãã¥ã¼ãéã)
- â[è¨å®(ã¡ãã¥ã¼ã®å·¦ç«¯ä¸ã®æ¯è»ãã¼ã¯)]â([Windowsã®è¨å®]ã¦ã£ã³ãã¦ãéã)
- â[è¨å®ã®æ¤ç´¢]æ ã«ãç°å¢å¤æ°ãã¨å ¥åâ(æ¤ç´¢çµæãç¾ãã)
- â[ç°å¢å¤æ°ãç·¨é]ãé¸æâ([ç°å¢å¤æ°]ã®ã¦ã£ã¶ã¼ããç¾ãã)
- â[[Username]ã®ã¦ã¼ã¶ã¼ç°å¢å¤æ°(U)]å ã®[Path]ãé¸ã³ã[ç·¨é(E)...]ãã¯ãªãã¯ããâ([ç°å¢å¤æ°åã®ç·¨é]ã¦ã£ã¶ã¼ããéã)
- â[æ°è¦(N)]ãã¯ãªãã¯â(ç°å¢å¤æ°ã®æå¾ã®è¡ã®ä¸ã«å ¥åç¨ã®æ ãç¾ãã)
- âãã®æ ã«"C:\Program Files (x86)\BestTech\GCC Developer Lite\GCC\x64\bin"ã¨æ¸ãè¾¼ã¿*5â[ç°å¢å¤æ°åã®ç·¨é]ã¦ã£ã¶ã¼ãã®[OK]ãã¯ãªãã¯â[ç°å¢å¤æ°]ã¦ã£ã¶ã¼ãã®[OK]ãã¯ãªãã¯
*1:2020.7.1ã«è¿½è¨
*2:GCC, the GNU Compiler Collection - GNU Project
*3:PATH2 ã¯GDL 2.5以åã®ãã¹ãPATH3 㯠GDL 2.7 ã®ãã¹ãGDL 2.6 ã¯çå½ã ã£ãã®ã§ãç¥ããªãã
*4:æ°è¨è¿°ï¼ãã¹åã8.3å½¢å¼ã§æ¸ãã°ãããGDLã®åããããããã¡ã¤ã«ãèªãã°ä¸ç®çç¶ã§ãã£ãã(2022.9.23)
æ§è¨è¿°âåèï¼組込みエンジニアのブログ gcc: error: CreateProcess:No such file or directory の対処法 ã«ãæ¸ãã¦ããããã«ãããããã¡ã¤ã«ã« Path ã追å ãã¦æ¸ãã¦ã ããã¡ã¤ã«ãã³ã³ãã¤ã«ããã¨ãã« gcc: error: CreateProcess: No such file or directory ãåºã¦ãã¾ããã©ãããã£ã¬ã¯ããªåã® " (x86)"ã®é¨åãæªãããã¦ããããã§ããã
*5:"C:\Program Files (x86)\"㯠GCC Developer Lite ã64bit Windows PC ã«ã¤ã³ã¹ãã¼ã«ããã¨ãã®ãã£ã¬ã¯ããªåã32bit OS ã®å ´åã¯""C:\Program Files\"ã§ããã