linux下编译ZBar出错 stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token

来源:互联网 发布:知乎手机版怎么写文章 编辑:程序博客网 时间:2024/06/05 04:33
编译ZBar时,./configure之后make时提示如下错误。
In file included from /usr/include/stdio.h:937:0,                 from zbar/debug.h:60,                 from zbar/scanner.c:34:/usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
解决方法:
    export CFLAGS="" //将CFLAGS环境变量置为空
    然后重新 ./configure
    此时再make,则会成功。
 
阅读全文
0 0
原创粉丝点击