📜  错误:链接:致命错误 LNK1561:必须定义入口点 - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:55.976000             🧑  作者: Mango

代码示例1
--(it's an issue because of the SDL which use a #define main to make it's
--own entry point)
--use this at the end of your file xmake.lua
if is_plat("windows") then
  add_ldflags("/subsystem:console")
end