简体   繁体   English

XCode的LiveCode外部示例

[英]LiveCode external example for XCode

I thought I'd try writing a simple C++ external for LiveCode. 我以为我会尝试为LiveCode编写一个简单的C ++外部函数。 The HelloWorld example given in the tutorial with ExternalEnvironmentsv3 doesn't compile under Xcode 7.2, all sorts of syntax errors (missing {} and semicolons, Bool for bool --- is this VisualStudio code?? ---, deprecated ColorPicker library warnings, and more). 本教程中使用ExternalEnvironmentsv3给出的HelloWorld示例无法在Xcode 7.2下编译,各种语法错误(缺少{}和分号,对于布尔来说是Bool ---这是VisualStudio代码吗?---,不推荐使用ColorPicker库警告,和更多)。

I am familiar with Objective-C, so some are easy to fix but a long time since I did any C++ and there is one syntax error (expecting an expression before EXTERNAL_BEGIN_DECLARATIONS) I can't figure out what it wants; 我对Objective-C熟悉,所以自从我做任何C ++以来,其中的一些都很容易修复,但是很长一段时间,而且有一个语法错误(期望在EXTERNAL_BEGIN_DECLARATIONS之前的表达式)我无法弄清楚它想要什么。 also a "missing line-end at end of file"(???) Since others don't appear to have reported any problem, perhaps am I overlooking something trivial? 也是“文件末尾缺少行尾”(???)既然其他人似乎没有报告任何问题,也许我忽略了一些琐碎的事情? Or has the sample been updated? 还是样本已更新? Or better, can anyone point me to a simple cpp example which actually works under Xcode? 或者更好的是,有人可以指出一个简单的cpp示例,该示例实际上可以在Xcode下工作吗?

I don't use the old externals environment stacks to generate projects. 我不使用旧的外部环境堆栈来生成项目。 I just start a new bundle project and add external.c & h to it. 我只是开始一个新的捆绑软件项目,并向其添加external.c&h。 You may be interested in my Xcode templates which help you start an Xcode project in the various ways it can be done. 您可能对我的Xcode模板感兴趣,这些模板可帮助您以各种方式启动Xcode项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM