gpt4 book ai didi

c - '(' token 之前的预期标识符或 '.' ../texture-atlas.c

转载 作者:行者123 更新时间:2023-11-30 20:20:25 26 4
gpt4 key购买 nike

enter image description here我正在尝试使用 cmake 构建一个 Github 存储库( https://github.com/rougier/freetype-gl )。显示以下错误:

expected identifier or '(' before '.' token ../texture-atlas.c

背景:该文件夹包含一个名为texture-atlas.c的文件,其中只有这一行:

../texture-atlas.c

正在引用的父目录中还有一个同名文件。我该如何修复这个错误?

最佳答案

该文件应该是符号链接(symbolic link),指向文件 ../texture-atlas.c (即 this file )。

在 Linux 中,符号链接(symbolic link)表示为包含链接目标路径的文本文件,以及文件系统中表示“这是符号链接(symbolic link)”的特殊元信息标志。这就是为什么您将目标文件名作为文件的内容,这就是当链接标志不存在时剩下的一切。

您可能在不支持符号链接(symbolic link)的平台上克隆了存储库。尝试通过链接复制文件。

编辑:

The installation instructions for Windows说:

Note: Harfbuzz examples only work with symbolic links enabled. See https://github.com/git-for-windows/git/wiki/Symbolic-links.

所以您可能应该点击该链接,看看该怎么做。

关于c - '(' token 之前的预期标识符或 '.' ../texture-atlas.c,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46360835/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com