首页 \ 问答 \ 在Xcode 4.2和iOS SDK 5.0中使用gcc 4.2(Use gcc 4.2 in Xcode 4.2 and iOS SDK 5.0)

在Xcode 4.2和iOS SDK 5.0中使用gcc 4.2(Use gcc 4.2 in Xcode 4.2 and iOS SDK 5.0)

我今天早些时候刚刚升级到Xcode 4.2和iOS SDK 5。 但是新的编译器似乎有些不同。

现在有两个“Compiler for C / C ++ / Objective-C”选项,“Apple LLVM编译器3.0”和“LLVM GCC 4.2”。 缺少GCC 4.2。

Apple LLVM编译器3.0,构建速度非常快(我喜欢它),给了我999+警告,我的游戏再也无法运行了。 看起来内存存在一些差异,加载游戏脚本时会崩溃。

LLVM GCC 4.2是如此神慢,我仍然无法在我的i7机器上完成一个小时的构建。

而且,还有一件事是我们的引擎使用gcc命令行来构建(而不是xcode)。

因此,它引出了一个问题, 我如何在Xcode 4.2中使用gcc 4.2 ? 这有可能吗?


I just upgraded to Xcode 4.2 and iOS SDK 5 earlier today. But everything seems different with new compilers.

There are two "Compiler for C/C++/Objective-C" options now, "Apple LLVM compiler 3.0" and "LLVM GCC 4.2". GCC 4.2 is missing.

Apple LLVM compiler 3.0, builds really fast(I like that), gives me 999+ warnings, and my game can no longer run. It looks like there's some differences on memory, and it crashes when loading our game's scripts.

LLVM GCC 4.2 is so god damn slow, I still cannot finish one build after hours on my i7 machine.

And, one more thing is our engine uses gcc command lines to build(instead of xcode).

So, it leads to one question, how can I use gcc 4.2 in Xcode 4.2? Is that even possible?


原文:https://stackoverflow.com/questions/7765157
更新时间:2022-08-25 08:08

最满意答案

是的,这是可能的。 你应该研究一下DirectLine

Direct Line API是一个简单的REST API,可直接连接到单个bot。 此API适用于编写自己的客户端应用程序,Web聊天控件或可与其机器人通信的移动应用程序的开发人员。

在这里,您将找到有关如何使用它的更多信息,这里有Node.js示例使用DirectLine与机器人交谈。


Yes, it's possible. You should look into DirectLine.

The Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers writing their own client applications, web chat controls, or mobile apps that will talk to their bot.

Here you will find more information about how to use it and here there is Node.js sample using DirectLine to talk with the bot.

相关问答

更多
  • 看看Frapi 。 这里是它的文档 。 至于推理,类似于一个正常的PHP框架。 文档 支持 社区 多个开发者贡献 不重新发明轮子 等等 Have a look at Frapi. Here is the documentation for it. As for the reasoning, similar to a normal PHP framework. Documentation Support Community Multiple devs contributing Not re-inventing ...
  • 是的,这是可能的。 你应该研究一下DirectLine 。 Direct Line API是一个简单的REST API,可直接连接到单个bot。 此API适用于编写自己的客户端应用程序,Web聊天控件或可与其机器人通信的移动应用程序的开发人员。 在这里,您将找到有关如何使用它的更多信息,这里有Node.js示例使用DirectLine与机器人交谈。 Yes, it's possible. You should look into DirectLine. The Direct Line API is a si ...
  • 我的错,我在Skype Bot Portal中有错误的消息回叫网址。 仅供参考,也许这有助于某人: My fault, I had the wrong Messaging Callback Url in the Skype Bot Portal. Just for reference, maybe this helps someone:
  • 您可以使用下面的代码并替换您的图像路径,以提供从bot到用户的响应,包括文本和图像。 await context.PostAsync("Here we go with the welcome message\n"+"![AN IMAGE!](Your_Image_URL)"); 另一种方法是,你也可以使用卡功能: private async Task Greeting(IDialogContext context, IAwaitable argument) ...
  • “MessageReceivedAsync”不是创建websocket的正确位置。 僵尸框架中的WebSockets用于在直线连接场景中接收消息。 通过调用StreamUrl获得的StartConversationAsync用于创建Web套接字: var token = await new DirectLineClient(dlSecret).Tokens.GenerateTokenForNewConversationAsync(); // Use token to create conversation ...
  • 如果它是您自己的表单,您可以使用验证码但如果您或您的任何允许的客户希望通过使用应用程序而不是使用Web视图来使用它,则可能会产生问题。 (我不确定你是否有这种情况)。 我的基本解决方案是在Web服务器级别(IIS等)上添加基本身份验证... If it's your own form, you may use a captcha but this may create problems if you or any of your allowed customers want to use it by usi ...
  • 你应该看看我在这里的答案,它解决了你的一些问题。 该答案的tl; dr是在使用第三方频道时,连接器不存储任何消息,它们只是转换和路由它们。 对于Microsoft通道,消息最多可存储24小时,以便排队和分派消息。 您询问Bot Framework的标志目前不存在。 LUIS存储数据供用户用于改进其模型,这些数据无论如何都不用于改进服务。 此外,此数据在静止时加密。 You should take a look at my answer here which addresses some of your co ...
  • @JasonSowers是对的。 用于C#的Bot Framework SDK是使用Web API构建的,并且用于Nodejs的Bot Framework SDK是通过restify 。 两者都是基本的Web应用程序。 您可以在支持跨区域的任何Web服务上部署bot应用程序。 EG您可以利用Azure Web Apps满足此要求,请参阅Azure上多个区域中的运行Web应用程序 。 希望能帮助到你。 @JasonSowers is right. Bot Framework SDK for C# is bui ...
  • 想法1: DirectLine是一个通道,而不是用于连接通道的库。 (例如:您不会使用Facebook Messenger连接到Skype) DirectLineClient对于创建通过Direct Line连接器服务连接到DirectLine通道的客户端应用程序非常有用。 想法2: 这种方法应该有效。 实际上, BotAuth库将此方法用于CallbackController中的MagicNumber登录流程: https : //github.com/MicrosoftDX/botauth/blob/9 ...
  • 2017年11月,我通过其他渠道从MS获得了此答案: Bot框架在全球范围内托管。 您对漫游器框架连接器发布的帖子使用流量管理器路由到您最近的数据中心(DNS明智)。 我们还要添加更多Azure区域部署; 2个在澳大利亚,1个在巴西,分别在西欧和东亚部署。 I got this answer off MS via other channels, in Nov 2017: Bot Framework is hosted world-wide. Posts you make to the bot framewo ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)