Visual studio ------ create a c ++ project process, visual studio ------
I have downloaded a visual studio 2015 installation and installed it for a long time. After a long time of exploration, I will create a project and write down the process, there is a basis for searching.
First, Step 1: Open the software
Then, click File> New> Project> in the upper-left column to obtain the following interface:
Click "Win32 console application" to create a new project. You can change the name and click "OK"
The following page is displayed:
Then click "Next". The following figure is displayed:
In the "Empty Project" area, check, select, and click Finish.
In this way, a project is initially created!
Then, in the "View"-> "other window"-> click "Property Manager" to operate
Next, the interface is as follows. Right-click the created new project symbol, and a menu appears. Click "properties" at the bottom ":
The following interface is displayed, and the "Platform" option x64 (my computer is 64-bit) is displayed. In "VC ++ target, to select "include directory" and "library directory", you need to change the path. According to your opencv location, this location is mine, and each location is different, my path is as follows:
Include directory:
H: \ jiqishijue \ opencv \ build \ include
H: \ jiqishijue \ opencv \ build \ include \ opencv
H: \ jiqishijue \ opencv \ build \ include \ opencv2
These three items are directly put in.
Library directory:
H: \ jiqishijue \ opencv \ build \ x64 \ vc14 \ lib
This is changed to this.
Finally, select "input" under "linker" and select "add dependency" to change
Opencv_world330d.lib
Click "OK", the interface disappears, and the "solution Resource Manager" is re-opened (selected in "View)
Right-click the source file and click "new item" in the menu"
The following page is displayed:
Select the name of the "c ++ file" and click "add!