致命错误:w2c/c-auto.h:No such file or directory

3phpmpom  于 2023-10-16  发布在  其他
关注(0)|答案(1)|浏览(132)

当尝试在alpine 3.18 Linux中构建语法时,显示错误:

git clone https://github.com/jlaurens/synctex.git
cd syntex
gcc -c -fPIC *.c

显示错误:

synctex_main.c:71:17: fatal error: w2c/c-auto.h: No such file or directory
   71 | #       include <w2c/c-auto.h>

我是不是漏了什么?我应该安装哪个软件包?

l5tcr1uw

l5tcr1uw1#

文件w2c/c-auto.h的包含由宏__SYNCTEX_WORK__控制(源代码):

#   ifdef __SYNCTEX_WORK__
#       include <synctex_parser_c-auto.h>
/*      for inline && HAVE_xxx */
#   else
#       include <w2c/c-auto.h>
/*      for inline && HAVE_xxx */
#   endif

尝试将此选项指定给编译器:-D__SYNCTEX_WORK__

相关问题