checking vsnprintf has C99 compatible return value... configure: error

qieqian 2012-05-14 10:48:33
checking vsnprintf has C99 compatible return value... configure: error: in `/flickr/flickcurl-1.22':
configure: error: cannot run test program while cross compiling
See `config.log' for more details

config.log
configure:12712: checking vsnprintf has C99 compatible return value
configure:12715: error: in `/flickr/flickcurl-1.22':
configure:12717: error: cannot run test program while cross compiling

怎么解决
...全文
133 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
帅得不敢出门 2012-05-15
  • 打赏
  • 举报
回复
configure:12712: checking vsnprintf has C99 compatible return value
configure:12715: error: in `/flickr/flickcurl-1.22':
configure:12717: error: cannot run test program while cross compiling

打开你的configure的12712行, 应该有段代码是测试vsnprintf的, 具体出错行可能在12715到12717,
应该有个判断,如果不通过则就会出错, 可以尝试着把这个判断强制置为true, 或者把出错处代码注释掉并跳到正确处。

configure: error: cannot run test program while cross compiling

可能是你是交叉编译,所以测试程序无法在pc机上运行导致的问题。

赵4老师 2012-05-14
  • 打赏
  • 举报
回复
#ifndef WIN32
#define _vsnprintf vsnprintf
#endif
qieqian 2012-05-14
  • 打赏
  • 举报
回复
没有,就是交叉编译一个源代码。
configure过不了,生成不了Makefile
W170532934 2012-05-14
  • 打赏
  • 举报
回复
好高级啊,你是不是修改了什么编译器配置?
W170532934 2012-05-14
  • 打赏
  • 举报
回复
都不知道你具体的环境,大家都在猜呢。
xunxun 2012-05-14
  • 打赏
  • 举报
回复
没法知道

你至少给出config.log的相关信息才知道具体的错误
qieqian 2012-05-14
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

C/C++ code
#ifndef WIN32
#define _vsnprintf vsnprintf
#endif
[/Quote]
不行。

3,882

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧