Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试编译我的代码时icc出现错误(在 HPC 集群上编译):
icc
properties.cpp(51): error: identifier "strtok" is undefined
我认为这是缺少标头的问题,但是,当我gcc在本地计算机上编译时没有错误。那我该如何编译呢?某种已移动的库是否存在问题?我试着搜索一些关于strockand的信息icc,但没有找到任何有用的东西。
gcc
strock
或者,是否有替换命令strtok?我用它从文件中读取数据(=是我的令牌)。
strtok
=
看起来 icc-avr 需要#include <string.h>strtok() - 这是有道理的,因为它将遵循大多数其他实现
#include <string.h>
见http://www.manpagez.com/man/3/strtok/