forked from xxq250/Nasal-Interpreter
1.1 KiB
1.1 KiB
Create VS project | 创建 VS 工程
First | 首先
Make sure you are using VS 2022.
确保你使用的是 VS 2022。
How to Create VS project
-
Get code from this repo using
git. -
In Visual Studio, click
File->New->Project From Existing Code.... -
Select
Visual C++->Next->chooseproject file location->write theproject nameat ease->Finish. -
Remove cpp files in
moduleto avoid compilation problems.(they should be compiled to dynamic libraries) -
Click
Source FilesinSearch Solution Explorerat left, right clickmain.cpp, compile.
如何创建VS工程
-
用
git从这个仓库获取代码。 -
在VS的界面,点击文件(F)->新建(N)->从现有代码创建项目(E)。
-
选择创建
Visual C++项目->下一步->项目文件位置选择你下载的代码存放的文件夹->填项目名称,随便写->完成。 -
从项目中去掉
module里的cpp文件,以防止编译错误。(那些本应该编译到动态库) -
点开左侧解决方案资源管理器中的
Source Files,右键点击main.cpp,编译。