我正在为我的项目添加Zxing 1.7(Qr扫描仪).
我将Mac OS X升级到Lion和xcode4.2,iOS5.0.
问题是当我运行项目时,我总是看到"未找到iostream文件".
我运行scanTest(从Zxing团队提供的Qr扫描仪测试示例代码),但它运行良好.
所以,我比较我的项目和scanTest,但我发现没有任何区别.
我该怎么做才能解决这个问题?
我想通过应用以下过滤器进行 mongodb 查询来搜索公司。
{
myLocation: [lng1, lat1], // That is to get distance from current location to companies on result.
region: [lng2, lat2], //That is to get companies within a radius in this region
radius: 10000,
tags: ["tag1", "tag2"],
sort: "asc" // to sort by nearest from current location.
}
Run Code Online (Sandbox Code Playgroud)
我认为它需要使用 $geoNear 两次并进行这样的聚合。
{
$geoNear: {
near: {
type: "Point",
coordinates: myLocation
},
distanceField: 'distance1',
maxDistance: radius,
spherical: true,
},
$match: { tags: tags },
$geoNear: {
near: {
type: …
Run Code Online (Sandbox Code Playgroud) 朋友
现在,我升级了xcode 4.2和iOS SDK 5.0.
它看起来不错,但问题是我无法在xcode 4.2中运行我的zxing示例应用程序.
我总是看到以下错误消息:
"为架构'armv7'选择了不支持的编译器'GCC 4.2'".
我怎样才能解决这个问题呢?
有什么好主意或经验吗?
请帮我...
最好的问候和感谢.