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;