Should I cross-develop Linux under Visual Studio

Visual Studio and the tools you can use seem to be far superior to Eclipse and other Linux platforms.

Does it make sense to cross-develop Linux in Visual Studio if the code hasn't changed?

I assume you can easily share files.

Of course, this depends on what you know and the project settings, but for later versions importing into VS may be easier than importing into Eclipse.

+6
source share
3 answers

This is indeed possible, but only if you have the right infrastructure in place on both Windows and Linux (or some other kind of * nix). I worked at an investment bank, where almost all the work was done on Windows with VC ++, and then switched to Solaris and recompiled. This allowed us to use much more advanced (on top of Solaris) Windows tools. And we are talking about creating multi-level multi-threaded servers here.

However, in order to make it work, they put in a huge effort (I think about 15 man-years) from the point of view of older developers. And it was worth it, because Solaris development tools are pants (but Linux is actually pretty good). This is not something that you, as an individual developer, will be especially comfortable doing if you are not writing general command line utilities. In this case, you can do this - I will regularly recompile my Windows command line projects to Linux.

+6
source

The hard part, in my opinion, supports separate build systems. If you run the project using Visual Studio, you will be tempted to configure the project using the Visual Studio build system.

Do not do that.

Instead, I recommend trying CMake . Build the assembly using CMake, and then work from that starting point.

+3
source

If I had to choose between Visual Studio and Emacs , I would go with Emacs. The fact that Visual Studio seems better to you is only because you are used to it and don’t know how to carry out your normal workflow using other tools. After all, Eclipse may not be the best choice for a Windows developer to switch to Linux. I will also take a look at Qt Creator .

0
source

Source: https://habr.com/ru/post/890445/


All Articles