Use lua source compiler and C ++ static library to communicate --01

1 compiler static library
a vs2017 create a C ++ console application
b attribute is set below
1 provided static type
Here Insert Picture Description
2 disposed precompiled headers
Here Insert Picture Description
c introduced into the filter lua source code src all documents
d on the project right to generate the name
when generating can make configuration changes Debug / Release x86 / x64-bit
Here Insert Picture Description
e generated files can be found .lib file in the root directory of the project
lua static library compiled successfully

2 Use lua static library implementation lua with c ++ / c communicate
a introducing library path to the project (static library where to put this path is where)
Here Insert Picture Description
b the path where the lua source file introduction came in
Here Insert Picture Description
c add library files to the linker
Here Insert Picture Description
C ++ and lua communication environment configuration

Guess you like

Origin blog.csdn.net/weixin_36285892/article/details/83716708