读书人

checking vsnprintf has C99 compatib

发布时间: 2013-01-04 10:04:18 作者: rapoo

checking vsnprintf has C99 compatible return value... configure: error
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

怎么解决

[解决办法]

#ifndef WIN32
#define _vsnprintf vsnprintf
#endif

[解决办法]
没法知道

你至少给出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

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

configure: error: cannot run test program while cross compiling

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

读书人网 >C++

热点推荐