Questions about VS2015 support for compiling Linux programs

Source: Internet
Author: User

Present situation

Currently released VS2015 include VS2015 Preview and VS2015 CTP6, these two versions do not support the direct compilation of C + + code for Linux programs, the case can refer to Visual Studio 6 and Visual Studio Preview.

Official release date

No definite release time was found on Microsoft's official website, just that it was released later this year. In addition WINDOWS10 official version of the release time for the late summer and early autumn, speculation that the official version of the VS2015 will also be launched, reference article late autumn and early fall! Windows 10 official release time confirmation.

Possible problems

From the current information, VS2015 release, it is possible to support the development and compilation of Linux programs, but the greater possibility is through C # development, to achieve cross-platform possibilities, Microsoft has open source dotnet CoreCLR, plans to support windows, Linux, iOS three platforms.

From opening up Visual Studio and. NET to every Developer, any application:. NET Server Core Open source and cross platform, V Isual Studio Community and preview of Visual Studio and. NET 2015 This article, the current VS2015 preview version has been supported by Clang and LLVM C + + development Android program that will support iOS programs soon. It can be inferred that VS2015 may also support C + + development of Linux programs and is compiled by the clang compiler. In this case, VS will provide the ability to edit and compile, and should not have the ability to debug Linux programs, even if you can debug, you must configure the virtual machine. There may also be the following limitations, developed in C + +, you must use standard syntax, not directly invoke Windows API, Windows-specific libraries, must use a cross-platform library, MFC programs may not cross the platform, the development of interface programs need QT or C # and so on.

Other programmes

Even if the VS2015 release is not supported by C + + direct compilation to build Linux programs, there are other options, such as: Visualgdb. VISUALGDB is a plug-in VS, after installing this plugin, you can use vs for editing, compiling, debugging Linux programs, of course, must prepare a Linux system virtual machine. It works by using the VS compiler code, using SSH+GCC for remote compilation, and using SSH + gdbserver + gdb for remote debugging. And, after using VISUALGDB, only need to understand simple make or cmake syntax, you can do a full development debugging, smart tips, debugging programs and VS development Windows program basically no difference.

Visualgdb not only supports Linux systems, but also supports UNIX systems such as Solaris, MAC, embedded, Cygwin and other operating systems, and basically, as long as you support SSH, GCC, gdbserver systems, you can use the VS + Visualgdb the way to develop. Like what:

    • debugging Linux programs with VS+VISUALGDB compilation
    • Compiling the Linux version RCF using VS+VISUALGDB
Other references

How much impact does the cross-platform feature of VS 2015 have on Qt?

Visual Studio Upcoming Features Timeline

Microsoft announces vs 2015 product line, can directly generate Linux binary program

Questions about VS2015 support for compiling Linux programs

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.