Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: advertless on March 19, 2023, 11:06:17 pm

Title: Support for Microsoft Visual Studio 2017 Community
Post by: advertless on March 19, 2023, 11:06:17 pm
Does Code::Blocks support  Microsoft Visual Studio 2017 Community?   

I will now describe what I have tried and what did and did not work.   In Code::Blocks  IDE I go Settings >> Compiler... >> Global Compiler Settings >> Selected Compiler.  In that dropdown I see,




I would be more than happy to install one of these on my computer, but I have tried all 3 and none are possible.  Describing each item at a time,

Microsoft Visual C++ Toolkit 2003  , does not exist anymore.

Microsoft Visual C++ 2005/2008 , does not exist anymore.   

Microsoft Visual C++ 2010 appears to exist at the following page, but this is deception.  The redistributable found  there is really only a 5MB security fix.

(see  "Other Tools, Frameworks, and Redistributables"    https://visualstudio.microsoft.com/vs/older-downloads/ (https://visualstudio.microsoft.com/vs/older-downloads/)  )


2015 Express

The final "Express" edition that Microsoft released was the 2015 Express.   Afterwards, they renamed these to "Community Edition".   After browsing and reading this forum for several hours, I noticed some threads suggesting that 2015 Express can interop with Code::Blocks.  I then attempted to install it on my computer. This was flatly refused,  an error message was displayed and I closed it, shown here :

Code
Setup Failed. 
0x80070666 - Another version of this product is already installed.
Installations of this version cannot continue. To configure or remove
the existing versions of this product, use Add/Remove Programs
on the Control Panel.

The reason this failed on my computer is because I have already installed  Visual C++ 2017 Community.  I require this to be on my computer in order to operate a GPU through Pytorch, a library related to python.  So I will not be removing it.

So now that Microsoft disallowed 2015 Community to be installed "alongside"  2017 Community,  my question is thus :  Does Code::Blocks support  Microsoft Visual Studio 2017 Community?   

If it does,  can you provide a  guide/tutorial for how to point the IDE to the relevant cl.exe    ,  linkers, and other resource compilers that it requires for targeting WINAPI application development?   


Title: Re: Support for Microsoft Visual Studio 2017 Community
Post by: Miguel Gimenez on March 19, 2023, 11:36:08 pm
Current nightly should support MSVC17.

EDIT: See commit r13165 (https://sourceforge.net/p/codeblocks/code/13165/).
Title: Re: Support for Microsoft Visual Studio 2017 Community
Post by: cacb on March 20, 2023, 01:20:07 pm
You can do anything with a bit of manual setup

https://github.com/arnholm/cpde_utils/blob/master/doc/toolchain/CodeBlocks_MSVC2019_setup.pdf