Visual Studio 2017 develops Linux c++__ storage

Source: Internet
Author: User

There are a lot of related articles on the Internet, but not very comprehensive or very clear, so here I summarize; A: Development environment:

Windows 7 + VM (LinuxMint (Ubuntu) 16.04) + Visual Studio 2017;

1: Install VS2017, to check the "use of C + + Linux development" toolset; (online more related articles)

2: Install GCC,GDB and other tools in LinuxMint:

sudo apt-get install openssh-server g++ gdb gdbserver


3: Create vs Linux Project:

New project-cross-platform-Linux-Console Application

4: "F5", will populate the link Linux host IP + username + password;

Input, OK on it;


5: Compile, run, the default will be in the target machine (Linux User directory, will also be related to the program files and directories copied to the Linux ~/project directory, will compile the relevant procedures);

Note: Although the code writing environment is win7, but the directory used in the program, such as the Environment configuration directory, file read-write directory, must be the target machine Linux on the path;

Here, look at compiling a program on Linux, you can also debug;



Two: Add Link debug Third party library:

But if you want to link to a third-party library.

Here The example uses the FFmpeg library to illustrate:

and the usual MFC configuration environment is not the same, but somewhat different;

It is also to be noted that the environment is designated as the target machine environment;





Reference:

Https://www.cnblogs.com/dongc/p/6599461.html

Http://www.linuxidc.com/Linux/2017-03/141704.htm


//

In fact, with QT MinGW or cmake can also be above the way no environmental engineering, in the development of Linux again, the need for handwritten project configuration files;

or directly on the window development, the main cross-platform usage, after the development of the complete Linux on the simple always;

or directly using QT in Linux development can also;


















Related Article

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.