在 CLion 中运行 Makefile。Makefile 是 stockfish(chess) 的,位于https://github.com/official-stockfish/Stockfish/blob/master/src/Makefile
我正在 windows 10 系统上尝试这个。为什么make找不到文件?是 Linux 和 Windows 上 \ vs / 的分隔符问题吗?
完全错误
Error running 'Makefile': Cannot run program "\usr\bin\make" (in directory "C:\Users\anmol\Desktop\Coding\stockfish\src"): CreateProcess error=2, The system cannot find the file specified
Run Code Online (Sandbox Code Playgroud)
我的 CLion 版本内置了 makefile 支持,并且我通过 cygwin 安装了工具链编译器。
我需要解析这样的字符串:
link:a link:blink:c link:d lkjh
输出应该是a, blink:c,d
但是使用strtok不稳定的输出是a, b, c, d,jh
我如何确保只link:明确拆分字符串(避免出现blink:c拆分的情况。另外我如何确保最后一个kjh不出现(k 似乎是这里的分隔符)。