Compiling LUA on Windows using dev C + +

Source: Internet
Author: User

1.dev c/C + + development tool is very small, 0 basic primer, use 5.11 this version.

2.lua http://www.lua.org/ftp/Download the source file using lua5.3.4.

3.lua compilation first step, Lua static link library

Unzip the downloaded lua5.3.4 compressed file, copy all the files under SRC to the current project

Add source file to current project

Exclude non-source files and lua.c luac.c lua.hpp

Compile the project to get the LUA53A.A library file

4,lua compile the second step, compile the LUA interpreter

Create a new Console Application project Lua53, and copy all the files from lua5.3.4 to the project directory and import to the project

Remove the default main.c files and luac.c files

Join the first step to get LUA53A.A as a link library

Get Lua53.exe interpreter after compiling

5. Third step compiler, identical, own digging, (delete lua.c)

Compiling LUA on Windows using dev C + +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.