<i id='SElFW'><tr id='SElFW'><dt id='SElFW'><q id='SElFW'><span id='SElFW'><b id='SElFW'><form id='SElFW'><ins id='SElFW'></ins><ul id='SElFW'></ul><sub id='SElFW'></sub></form><legend id='SElFW'></legend><bdo id='SElFW'><pre id='SElFW'><center id='SElFW'></center></pre></bdo></b><th id='SElFW'></th></span></q></dt></tr></i><div id='SElFW'><tfoot id='SElFW'></tfoot><dl id='SElFW'><fieldset id='SElFW'></fieldset></dl></div>
    <bdo id='SElFW'></bdo><ul id='SElFW'></ul>

    <legend id='SElFW'><style id='SElFW'><dir id='SElFW'><q id='SElFW'></q></dir></style></legend>

    1. <tfoot id='SElFW'></tfoot>

      <small id='SElFW'></small><noframes id='SElFW'>

      将 Lua 嵌入 C++

      Embed Lua into C++(将 Lua 嵌入 C++)
            <tbody id='KAcjC'></tbody>
        • <legend id='KAcjC'><style id='KAcjC'><dir id='KAcjC'><q id='KAcjC'></q></dir></style></legend>

          <i id='KAcjC'><tr id='KAcjC'><dt id='KAcjC'><q id='KAcjC'><span id='KAcjC'><b id='KAcjC'><form id='KAcjC'><ins id='KAcjC'></ins><ul id='KAcjC'></ul><sub id='KAcjC'></sub></form><legend id='KAcjC'></legend><bdo id='KAcjC'><pre id='KAcjC'><center id='KAcjC'></center></pre></bdo></b><th id='KAcjC'></th></span></q></dt></tr></i><div id='KAcjC'><tfoot id='KAcjC'></tfoot><dl id='KAcjC'><fieldset id='KAcjC'></fieldset></dl></div>

          <small id='KAcjC'></small><noframes id='KAcjC'>

        • <tfoot id='KAcjC'></tfoot>
            <bdo id='KAcjC'></bdo><ul id='KAcjC'></ul>

                本文介绍了将 Lua 嵌入 C++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想编写一个可以在执行过程中交互/调用 Lua 脚本的 C++ 程序.该程序的一个关键概念是完全独立于平台,但我似乎无法找到实际提供某些东西的 Lua 构建.

                I want to write a C++-Program that can interact/call Lua-scripts during execution. A key concept of the program is complete platform independence, but I seem to be unable to locate a Lua-build that actually offers something that.

                到目前为止,我发现的 Lua 构建要么基于环境变量,要么基于特定的库,例如 .lib.dll.so.来自 lua.org 的官方 Lua 源也不是我正在寻找的,因为它定义了一个主要的 -功能...

                The Lua-builds I found so far are either based on environment-variables or specific libraries like .lib, .dll or .so. The official Lua-source from lua.org also is not what I'm looking for as it defines a main-function…

                是否有一个简单的 - 最好的情况是像 sqlite-amlgamation - Lua-interpreter for C/C++ 没有任何这些依赖项?

                Is there a simple - best case would be something like sqlite-amalgamation - Lua-interpreter for C/C++ that doesn't have any of these dependencies?

                推荐答案

                lua.c 包含 main 并定义了控制台应用程序的入口点.如果您将其从项目中删除,剩下的会构建到独立库中,或者您愿意的话,可以构建动态库.

                lua.c contains main and defines the entry point for a console application. If you remove it from the project, whats left builds into a standalone lib, or dynamic library if you prefer, just fine.

                这篇关于将 Lua 嵌入 C++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

                      <tbody id='d3WZt'></tbody>

                  1. <small id='d3WZt'></small><noframes id='d3WZt'>

                    1. <i id='d3WZt'><tr id='d3WZt'><dt id='d3WZt'><q id='d3WZt'><span id='d3WZt'><b id='d3WZt'><form id='d3WZt'><ins id='d3WZt'></ins><ul id='d3WZt'></ul><sub id='d3WZt'></sub></form><legend id='d3WZt'></legend><bdo id='d3WZt'><pre id='d3WZt'><center id='d3WZt'></center></pre></bdo></b><th id='d3WZt'></th></span></q></dt></tr></i><div id='d3WZt'><tfoot id='d3WZt'></tfoot><dl id='d3WZt'><fieldset id='d3WZt'></fieldset></dl></div>
                      • <bdo id='d3WZt'></bdo><ul id='d3WZt'></ul>
                        <legend id='d3WZt'><style id='d3WZt'><dir id='d3WZt'><q id='d3WZt'></q></dir></style></legend>

                        • <tfoot id='d3WZt'></tfoot>