Use VC to create a Unix Project

Source: Internet
Author: User

1. Create a project
In the vs menu, choose "Create Project"> "Win32"> "console application"> "directory for creating solution", and select "Empty Project" as the application option to get a new directory named after the project name, there are solution files and project files. If the project name is the same as an existing Directory, put the project file into an existing Directory.

2. Prepare the source code file.
Copy the project source code file to the project directory.

3. Create a filter (directory) Structure
Solution Resource Manager deletes "header files", "source files", and "resource files" under the project"
Create a filter based on the source code directory structure: Right-click the project name and choose "add"> "new filter ". The filter is equivalent to a directory structure, but the files in it can come from any location. In order to facilitate the creation of a filter strictly according to the directory structure (it is convenient to directly copy the entire project directory, facilitate FTP operations, and facilitate VSS operations ).
Right-click a filter to add a sub-filter.

4. Filter files one by one
On the filter, right-click "add" and select "existing items" and add the files in the corresponding directory. Do not disrupt the directory structure or add files not in the project directory.
You can only add directories one by one.

5. Set the additional include path for the project.
If the project header file is put under the Public path, you may need to append the include path
On the project, right-click "properties", "C/C ++", and click "add include directory" to set the include path. For example:
C:/working _ development/collect/sourcecode/collect/include; "$ (solutiondir)/include"
Contains an absolute path and a path relative to the solution directory.
The inclusion path is incorrect and the member information cannot be correctly analyzed.

6 Automatic upload to Unix Host
Vs does not have the automatic FTP upload function, but it can be implemented using other software.
Write the CuteFTP script and put it in the project directory.
Set the project debugging command to run the script. Right-click "property", "debug", and set the "command parameter" to "cmdwscript.exe", and set "command parameter" to the script name.
Run the "start execution (do not Debug)" command in the menu to execute the script (this command can be added to the toolbar)
If you use other methods, set appropriate commands and parameters.

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.