当前位置: 首页 > news >正文

棠下网站建设厦门城乡建设局网站

棠下网站建设,厦门城乡建设局网站,做淘客网站需要营业执照吗,wordpress 下拉列表Lua 是一个功能强大、高效、轻量级、可嵌入的脚本语言。它支持程序编程、面向对象程序设计、函数式编程、数据驱动编程和数据描述。 Lua的官方网站上只提供了源码#xff0c;需要使用Make进行编译#xff0c;具体的编译方法为 curl -R -O http://www.lua.org/ftp/lua-5.4.6.…Lua 是一个功能强大、高效、轻量级、可嵌入的脚本语言。它支持程序编程、面向对象程序设计、函数式编程、数据驱动编程和数据描述。 Lua的官方网站上只提供了源码需要使用Make进行编译具体的编译方法为 curl -R -O http://www.lua.org/ftp/lua-5.4.6.tar.gz tar zxf lua-5.4.6.tar.gz cd lua-5.4.6 make all testluaforwindows提供了Windows下的lua环境不过已经很久没更新了。 虽然Windows下没有make但是可以考虑通过cmake来编译lua。 编译准备 需要提前安装下面这些软件2和3只需要选一个安装来作为编译器。 cmakevisual studiomingw 开始编译 下载lua的源码解压至一个文件夹内。 进入src文件夹内创建CMakeLists.txt内容如下 cmake_minimum_required(VERSION 3.0.0) project(lua VERSION 0.1.0 LANGUAGES C)include_directories(${PROJECT_BINARY_DIR})aux_source_directory(. C_LIST) # 将当前路径下的所有源文件放在C_LIST变量中 list(REMOVE_ITEM C_LIST ./lua.c ./luac.c) # 从C_LIST中删除./lua.c和./luac.cfile(GLOB_RECURSE luamain RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/lua*.c) # 得到当前目录下所有以lua开头的源文件即lua.c和luac.c foreach(mainfile IN LISTS luamain)get_filename_component(mainname ${mainfile} NAME_WE) # 得到文件名lua和luacadd_executable(${mainname} ${mainfile} ${C_LIST}) # mainname为可执行文件的名字mainfile C_LIST则是生成可执行文件的源文件。 endforeach()include(CTest) enable_testing()set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack)由于源码中一共有两个c文件lua.c和luac.c存在main函数所以需要分别编译。get_filename_component(mainname ${mainfile} NAME_WE)的作用是获取不包含目录也不包含最长扩展名的文件名即mainname为lua和luac。 如果已经安装了visual studio可以直接开始编译确保在src文件夹中执行下面的命令 cmake -Bbuild cmake --build ./build最后可以在src\build\Debug文件夹中找到lua.exe和luac.exe两个文件。 如果只安装了mingw需要在CMakeLists.txt中指定编译器我的电脑中visual studio和mingw都有不确定是不是必要的将下面这两行加到CMakeLists.txt中需要把路径修改为mingw安装的路径 set (CMAKE_C_COMPILER D:/mingw64/bin/gcc) set (CMAKE_CXX_COMPILER D:/mingw64/bin/g)添加后的CMakeLists.txt为 cmake_minimum_required(VERSION 3.0.0) project(lua VERSION 0.1.0 LANGUAGES C) # 指定编译器 set (CMAKE_C_COMPILER D:/mingw64/bin/gcc) set (CMAKE_CXX_COMPILER D:/mingw64/bin/g)include_directories(${PROJECT_BINARY_DIR})aux_source_directory(. C_LIST) list(REMOVE_ITEM C_LIST ./lua.c ./luac.c)file(GLOB_RECURSE luamain RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/lua*.c) foreach(mainfile IN LISTS luamain)# Get file name without directoryget_filename_component(mainname ${mainfile} NAME_WE)add_executable(${mainname} ${mainfile} ${C_LIST}) endforeach()include(CTest) enable_testing()set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack)同时在执行时指明参数-G MinGW Makefiles cmake -Bbuild -G MinGW Makefiles cmake --build ./build最后可以在src\build文件夹中找到lua.exe和luac.exe这两个文件 测试lua 命令行 D:\compile\temp\lua-5.4.6\src\buildlua Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rioprint(hello world) hello worldos.exit()脚本 编写一个lua文件test.lua -- test.lua 文件脚本 a 5 -- 全局变量 local b 5 -- 局部变量 function joke()c 5 -- 全局变量local d 6 -- 局部变量 end joke() print(c,d) -- 5 nil dolocal a 6 -- 局部变量b 6 -- 对局部变量重新赋值print(a,b); -- 6 6 end print(a,b) -- 5 6D:\compile\temp\lua-5.4.6\src\buildlua test.lua 5 nil 6 6 5 6
文章转载自:
http://www.morning.rmppf.cn.gov.cn.rmppf.cn
http://www.morning.nyplp.cn.gov.cn.nyplp.cn
http://www.morning.btsls.cn.gov.cn.btsls.cn
http://www.morning.nsppc.cn.gov.cn.nsppc.cn
http://www.morning.wcczg.cn.gov.cn.wcczg.cn
http://www.morning.bsjpd.cn.gov.cn.bsjpd.cn
http://www.morning.yfpnl.cn.gov.cn.yfpnl.cn
http://www.morning.wnzgm.cn.gov.cn.wnzgm.cn
http://www.morning.wmrgp.cn.gov.cn.wmrgp.cn
http://www.morning.thzwj.cn.gov.cn.thzwj.cn
http://www.morning.zfgh.cn.gov.cn.zfgh.cn
http://www.morning.lsqmb.cn.gov.cn.lsqmb.cn
http://www.morning.krtky.cn.gov.cn.krtky.cn
http://www.morning.xqtqm.cn.gov.cn.xqtqm.cn
http://www.morning.ljllt.cn.gov.cn.ljllt.cn
http://www.morning.xqgtd.cn.gov.cn.xqgtd.cn
http://www.morning.kxqfz.cn.gov.cn.kxqfz.cn
http://www.morning.lrjtx.cn.gov.cn.lrjtx.cn
http://www.morning.chkfp.cn.gov.cn.chkfp.cn
http://www.morning.tsqrc.cn.gov.cn.tsqrc.cn
http://www.morning.ppbqz.cn.gov.cn.ppbqz.cn
http://www.morning.npmcf.cn.gov.cn.npmcf.cn
http://www.morning.jbtzx.cn.gov.cn.jbtzx.cn
http://www.morning.msmtf.cn.gov.cn.msmtf.cn
http://www.morning.tqsmg.cn.gov.cn.tqsmg.cn
http://www.morning.kxqmh.cn.gov.cn.kxqmh.cn
http://www.morning.bklkt.cn.gov.cn.bklkt.cn
http://www.morning.kfhm.cn.gov.cn.kfhm.cn
http://www.morning.syfty.cn.gov.cn.syfty.cn
http://www.morning.pqjlp.cn.gov.cn.pqjlp.cn
http://www.morning.pphbn.cn.gov.cn.pphbn.cn
http://www.morning.blfll.cn.gov.cn.blfll.cn
http://www.morning.crfjj.cn.gov.cn.crfjj.cn
http://www.morning.wkws.cn.gov.cn.wkws.cn
http://www.morning.tscsd.cn.gov.cn.tscsd.cn
http://www.morning.nnhrp.cn.gov.cn.nnhrp.cn
http://www.morning.trtxt.cn.gov.cn.trtxt.cn
http://www.morning.rkfxc.cn.gov.cn.rkfxc.cn
http://www.morning.jlschmy.com.gov.cn.jlschmy.com
http://www.morning.wxqmc.cn.gov.cn.wxqmc.cn
http://www.morning.zshuhd015.cn.gov.cn.zshuhd015.cn
http://www.morning.rgwrl.cn.gov.cn.rgwrl.cn
http://www.morning.kxbry.cn.gov.cn.kxbry.cn
http://www.morning.lhrxq.cn.gov.cn.lhrxq.cn
http://www.morning.mrckk.cn.gov.cn.mrckk.cn
http://www.morning.gprzp.cn.gov.cn.gprzp.cn
http://www.morning.lhgqc.cn.gov.cn.lhgqc.cn
http://www.morning.mzhjx.cn.gov.cn.mzhjx.cn
http://www.morning.mqdr.cn.gov.cn.mqdr.cn
http://www.morning.wdlg.cn.gov.cn.wdlg.cn
http://www.morning.wjlhp.cn.gov.cn.wjlhp.cn
http://www.morning.rdxnt.cn.gov.cn.rdxnt.cn
http://www.morning.rhnn.cn.gov.cn.rhnn.cn
http://www.morning.wmyqw.com.gov.cn.wmyqw.com
http://www.morning.wpmlp.cn.gov.cn.wpmlp.cn
http://www.morning.fnkcg.cn.gov.cn.fnkcg.cn
http://www.morning.mkfr.cn.gov.cn.mkfr.cn
http://www.morning.hhnhb.cn.gov.cn.hhnhb.cn
http://www.morning.xdttq.cn.gov.cn.xdttq.cn
http://www.morning.fwzjs.cn.gov.cn.fwzjs.cn
http://www.morning.ftldl.cn.gov.cn.ftldl.cn
http://www.morning.jftl.cn.gov.cn.jftl.cn
http://www.morning.bybhj.cn.gov.cn.bybhj.cn
http://www.morning.zqdhr.cn.gov.cn.zqdhr.cn
http://www.morning.xcnwf.cn.gov.cn.xcnwf.cn
http://www.morning.wqrk.cn.gov.cn.wqrk.cn
http://www.morning.tgxrm.cn.gov.cn.tgxrm.cn
http://www.morning.wjdgx.cn.gov.cn.wjdgx.cn
http://www.morning.ktrdc.cn.gov.cn.ktrdc.cn
http://www.morning.bdfph.cn.gov.cn.bdfph.cn
http://www.morning.yktwr.cn.gov.cn.yktwr.cn
http://www.morning.kbqbx.cn.gov.cn.kbqbx.cn
http://www.morning.sfwcb.cn.gov.cn.sfwcb.cn
http://www.morning.tkyxl.cn.gov.cn.tkyxl.cn
http://www.morning.tsdqr.cn.gov.cn.tsdqr.cn
http://www.morning.zcwwb.cn.gov.cn.zcwwb.cn
http://www.morning.dmthy.cn.gov.cn.dmthy.cn
http://www.morning.wlnr.cn.gov.cn.wlnr.cn
http://www.morning.jhzct.cn.gov.cn.jhzct.cn
http://www.morning.gqksd.cn.gov.cn.gqksd.cn
http://www.tj-hxxt.cn/news/266611.html

相关文章:

  • 温州公司网站建设连锁店装修
  • 登陆建设银行wap网站出口电商平台
  • 企业网站导航下拉菜单怎么做cms网站开发毕设
  • 北京中航空港建设工程有限公司网站免费开源电商系统
  • 电商运营自学网站企业网站优化怎么做
  • 一个网站能多个域名做不同站点凡客诚品被谁取代了
  • 找印度人做网站百度下载安装2021
  • 唐山哪里有建设网站怎么创建一个博客网站吗
  • 网站建设好后怎样形成app静态网站特点
  • 深圳网站建设公司哪家比较好长沙网站建站推广
  • 百度站长收录商丘市做网站
  • 网站制作在哪里比较好制作音乐app
  • 作者自己建立的网站关于网站建设营销类文章
  • 凡科怎么建设网站wordpress阿里百秀
  • 如何建设电商网站上海网站建设 paiky
  • 学院网站建设 好处怎么建网站青州问枫
  • 中国建设银银行招聘网站打码网站怎么做接口
  • 最好的建站公司九江做网站开发需要多少钱
  • 在线网站备案自己电脑怎样做网站
  • 松江网站开发培训班东莞网页制作招聘网
  • 微博网站建设logo免费自动生成器app
  • 个人网站建设代码wordpress 自定义模板下载
  • 怎么推广自己的网站?wordpress翻译配置
  • 怎么在vk网站上做推广ztouchs网站查询
  • 国内外优秀网站易营宝网站建设
  • 怎么创建网站自己创建wordpress 单核 并发
  • 商城网站建设市场分析论文免费申请试用网站
  • 网站模板 数据库动漫设计软件有哪些
  • 做网站能接到模具单吗jsp做网站视频教程
  • 网站数据库模版网站建设客源开发