原生Lua编译时未经过C++的Name Mangling,所以在C++工程中需要用extern "C"关键字来包含以下头文件:
extern "C" {#include "Lua.h"#include "LuaLib.h"#include "LauxLib.h"}
Copyright @ 2024 孤注一掷 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster