visual studio 2022 for mac cannot create c++ console application - c++

I am using Visual Studio for Mac 2022, and I am trying to create a C++ console application, does anyone know how to get those templates shows up when I choosing language?

Visual Studio for Mac is an IDE solely for .NET development.
If one looks at the Visual Studio website, it provides a comparison of the Mac and PC versions of Visual Studio. C++ development is not available for Visual Studio 2022 for Mac.
However, there exist many IDEs that support C++ development on Mac. Apple's very own Xcode allows the creation of C++ projects, as well as Visual Studio Code, a highly extensible code editor. CodeBlocks and CLion also exist as C++ IDEs for macOS.

Related

Microsoft Visual C++ Build Tools compiler with Eclipse

Recently I decided to move from Microsoft Visual Studio to Microsoft Visual C++ Build Tools. I am working with the latest Eclipse and want to utilize the Microsoft C++ compiler.
While having Microsoft Visual Studio installed there was an option to choose the Microsoft compiler in the tool-chain options which went away and I can't seem to get it back with Microsoft Visual C++ Build Tools.
I have added the folders to user path and tried launching Eclipse from within the build tools "special" terminal but with no success.
Has anyone managed to achieve compilation within eclipse with the build tools and if yes how is it possible?
P.S.: I deliberately changed from Microsoft Visual Studio to Microsoft Visual C++ Build Tools, as the difference in disk size is vast.
I have Eclipse 4.6 Neon. In Help > Install New software make sure you installed C/C++ Visual C++ Support. Restart Eclipse after installation.
I can see Microsoft Visual C++ in Toolchains now.

Any problems with having Code::Blocks and MS Visual Studio on same machine

I have installed Code::Blocks on my (Windows) machine. It is working fine.
However there are some open source libraries that i would like to use. For this i will have to build the library on my machine. However the source code is available in the form of a MS Visual Studio solution file.
I've tried to use the 'Import Project' feature of Code::Blocks but got errors with that. I am now thinking of installing MS Visual Studio express edition to see if can build the library using it. I do want to keep my install of Code::Blocks.
I wanted to ask if there are any problems having these two IDEs (Code::Blocks & MS Visual Studio Express Edition) on the same machine? I know they use different default compilers.

Compile Visual Studio projects without having Visual Studio installed?

Is there a way to compile a Visual Studio 2012 project without having the VS installed? I need to compile C++ stuff for windows quite rarely and buying the product is not justified as there's no profit (community projects). In most of the cases the project and solution files will be available. If there's a way to compile the code with SDK, could you please share an example?
Thanks!
You can download visual studio express for free. Whenever you build a solution, the bin folder in your project folder will contain the compiled code.
http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
EDITED: (per MS website)
Visual Studio Express 2013 for Windows Desktop enables the creation of desktop apps in C#, Visual Basic, and C++, and supports Windows Presentation Foundation (WPF), Windows Forms, and Win32.
Sign in to Visual Studio within 30 days with your Microsoft account to synchronize your settings across multiple machines and register your product.
Your best bet is likely going to be using msbuild which will allow you to build a solution or project without having Visual Studio installed.
If you have the free version VC++ Express installed (and thus the compiler toolchain), you might find it more interesting to use Eclipse CDT as IDE on top. At least the newer versions (I think since Helios) support using the native MS toolchain. You can import from native
VS projects also.
Eclipse is the more powerful IDE IMHO, and will additionally support other toolchains (either cross compiling, or Windows alternatives as MinGw GCC).

Can I use build against the 2008 VS Runtime with VS 2010 and no copy of VS 2008?

It looks like using Visual Studio 2010 it is possible to build against the 2008 runtime, if you have both editions installed: Can I use Visual Studio 2010's C++ compiler with Visual Studio 2008's C++ Runtime Library?
Is it possible to do this using just the free Windows Platform SDKs and VS 2010? Just to stress - installing Visual Studio 2008 is not an option.
Background: I'd like to build a Python module for Python 2.7. I have a copy of Visual Studio 2010, but Python 2.7 (specifically the Python(x,y) distribution) is built using 2008. Rebuilding Python, or rebuilding Python(x,y) is not something I want to get into (there are various other modules I want to use as well). My module needs to link against vendor-supplied libraries built using VS 2008/2010 (I've been given both sets of libraries). I don't own a copy of Visual Studio 2008, and I really don't want to have to buy one.
This MSDN article says that although you can change the platform toolset in the IDE you still need to have the VS2008 binaries installed.
I know you said installing 2008 was not an option but perhaps you can still find the free versions in an old SDK or even the Express version on the Microsoft website.

Visual C++ 2010 Express for mac

Is it possible to get Visual C++ 2010 Express for Mac OS X?
If not is there another application, other than Xcode, that will do the same thing?
Visual Studio C++ is not supported on OS X.
You can use either Eclipse or KDevelop. A complete listing IDEs for C++ is available at
http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#C.2FC.2B.2B
There is no Visual Studio for Mac that I'm aware of. I think QtCreator, Eclipse and NetBeans all work on Mac.
Microsoft has a version of Visual Studio which is cross platform. It will run on Windows, Mac OSX and Linux. It is called Visual Studio Code. You can download it at: https://code.visualstudio.com/download
You will have to download the C++ extensions. It will take you to the market place where you can get the extension for free.
Personally I prefer Xcode when coding on a Mac.
It's not hard to learn, but because it is fairly new there aren't many useful videos or articles on how to navigate Visual Studio Code. If you are familiar with Visual Studio IDE for Microsoft Windows, Visual Studio Code is a totally different program.
You can try Eclipse:
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigor
If you really want visual c++ bootcamp you MacOS. Install windows along side with Mountain Lion and you are good to go.