Puas yog Raspbian muaj ac compiler?
Puas yog Raspbian muaj ac compiler?

Video: Puas yog Raspbian muaj ac compiler?

Video: Puas yog Raspbian muaj ac compiler?
Video: Невероятно красивые засухоустойчивые цветы для солнечных мест, о которых мало, кто знает 2024, Tej zaum
Anonim

Raspberry Pi - Nruab GCC 9 thiab sau ua ke C++ 17 cov kev pab cuam

Thaum lub sijhawm sau ntawv no Raspbian yog raws li Debian Buster, uas los nrog qhov ruaj khov tab sis me ntsis outdated GCC 8.3 raws li lub neej ntawd C thiab C ++ compiler.

Hais txog qhov no, Raspberrypi puas tuaj yeem khiav C?

Koj ua tau program hauv C nyob rau hauv ntau yam sib txawv. Tag nrho cov software koj xav tau khiav a C program twb ntsia rau ntawm tus qauv Pib khiav Raspbian. Koj ua tau siv tus editor ntawm lub Pi los tsim koj qhov kev pab cuam thiab ces compile thiab khiav nws siv kab hais kom ua.

Qhov thib ob, Raspbian puas muaj GCC? Lub default version ntawm lub GCC yog raws li nram no: Raspbian Stretch: GCC 6.3. 0. 2 ( GCC 4.8.

Yog li ntawd, kuv yuav sau li cas C ntawm Raspberry Pi?

  1. Tsim cov ntaub ntawv Source. Txhawm rau pib, qhib Nano ntawv editor thiab tsim cov ntaub ntawv tshiab nrog ".c" txuas ntxiv los ntawm kev nkag mus rau qhov no ntawm qhov hais kom ua:
  2. Compiling Program. Code sau rau hauv C yuav tsum tau muab tso ua ke ua ntej nws tuaj yeem khiav hauv lub computer.
  3. Ua Qhov Kev Pabcuam Ua Haujlwm.
  4. Ua qhov Program.

Koj puas tuaj yeem ua haujlwm ntawm Raspberry Pi?

Sau koj thawj zaug qhov kev pab cuam ntawm Raspberry Pi Raspbian los preloaded nrog Python, tus nom programming lus ntawm cov Raspberry Pi thiab IDLE 3, Python Integrated Development Ib puag ncig. Peb 'yuav mus qhia koj tam sim no yuav ua li cas pib nrog IDLE thiab sau koj thawj zaug, txawm tias yooj yim, Python qhov kev pab cuam.

Pom zoo: