This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/MSP-EXP430FR6989:MSP430 TI CGT 18.12.3.LTS 不包括 unistd.h

Guru**** 2394305 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/848432/compiler-msp-exp430fr6989-msp430-ti-cgt-18-12-3-lts-does-not-include-unistd-h

器件型号:MSP-EXP430FR6989

工具/软件:TI C/C++编译器

上面列出的 MSP430 TI CGT 版本不包含头文件"unistd.h"。 但是、可以在此处找到一个版本: https://doc.riot-os.org/msp430__common_2include_2unistd_8h.html#details 、该版本在用于编译时有效。

TI CGT 为何不包含 unistd.h? 它不应该用于 MSP430吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    C 和 C++语言标准不需要头文件 unistd.h。  TI MSP430编译器从未提供过此文件。

    谢谢、此致、

    乔治

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    unistd.h 主要是(所有?) 关于定义 Unix 系统调用。 除非您正在运行 Unix 或试图看起来您正在运行 Unix,否则这是完全无用的。