Eclipse C/C++ Compiler Visual Studio C++ - eclipse-plugin

I have just installed cdt plugin for eclipse and tried to make a new project. On the tool chain its showing Microsoft Visual C++ not MinGW.
On writing #include its showing Unresolved inclusion:
What should I do now? How can I have MinGW now? Please help me out.

Related

Configuring an Intel compiler from MSVC 2019 built-in CMake

Recent Visual Studio versions support CMake natively, with documentation for compilation with MSVC, Clang, and for linux. However, there is no official documentation for configuring the Intel compiler.
What is the best way to configure the Intel compiler using Visual Studio's native CMake? Can I create a custom environment?
I found one forum post that attempts to solve the problem, but it relies on the Windows CLI to launch Visual Studio. I've also submitted a feature request for native CMake support for the Intel C/C++ compiler within Visual Studio.

Brand new CLR Class Library project won't build: missing MSCOREE.lib

Using the latest Visual Studio 2019 version, a brand new project will not build:
fatal error LNK1104: cannot open file 'MSCOREE.lib'
I have tried to re-install Visual Studio but that didn't change anything unfortunately.
These components have been selected by the installer but apparently it's not enough:
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.24)
Windows 10 SDK (10.0.18362.0)
C++/CLI support for v142 build tools (14.24)
Question:
Are there any tricks to get CLR Class Library (.NET Framework) projects to build ?
Here is the solution:
Apparently, no matter what framework version you will target, the $(NETFXKitsDir)Lib\um\x86 macro will always point to C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x86.
Now here's the problem, even though you install 4.7.2 SDK in Visual Studio Installer, this file is nowhere to be seen.
But if you download .NET Framework 4.7.2 Developer Pack Offline Installer and press the Repair button, it gets correctly installed and a brand new project will build succesfully.
Alternatively:
Re-installing VS also fixes the issue ...

How to generate 64 bit Visual Studio project for LLVM using CMake?

I have downloaded LLVM source repository form http://releases.llvm.org/download.html.
Now when I am running CMAKE in the source directory it is generating 32bit Visual Studio Projects but I want to generate 64 bit visual studio projects. If someone has already tried please help.
I have gone through the document https://llvm.org/docs/GettingStartedVS.html and certainly as mentioned -Thost=x64 option is not working.
You need to choose the Visual Studio 15 2017 Win64 generator using the option -G.

CMake cannot identify C compiler from installed Visual Studio 2015

I have been trying to install CMake for vtk, but I'm getting this error message:
The C compiler identification is unknown,The CXX compiler identification is unknown.
I'm using CMake 3.2.1, vtk 6.2.0 and Visual Studio 2015.
Screenshot
Please take a look at this answer if it helps:
CMake does not find Visual C++ compiler
Basically VS2015 doesn't install Cx compilers by default. Creating a C++ project in VS2015 will force VS to download necessary compilers.
here is what worked for me:
Relaunch Visual Studio 2015 install
Choose "modify"
Check that both this components are installed: "Common tools for visual c++ 2015" AND "Tools and Windows XX SDK"
If not, check and choose "update"
Once I installed this components, CMake was able to detect the C/C++ compiler.
Open developer command prompt from visual studio tools.
reach to the directory where your cmake exe resides.
Run it.
Hopefully, now it will find the c and cxx compiler and run as desired.

Somehow creating a 64bit DLL with Borland C++ Builder

I've created a 32bit DLL in Borland C++ Builder XE2 no problem.
I was tasked to create a 64bit version as well. After researching the "hows" I came to know that Builder does not yet support 64bit compilations.
After some digging around it looked as though the only way to do this ( or any kind of 64bit compiling) was to use visual studio express command lines. Thus I tried the following commands to try to compile:
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x64
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe" -IC:\projects\dll -I"C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\include\windows\vcl" -I"C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\include\windows\rtl" -MD -LD C:\projects\dll\dll.cpp -FeMyDLL.dll
Running the above gives me the following error:
C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\include\windows\rtl\sysmac.h(162) : fatal error C1189: #error : "System.hpp/sysmac.h and related headers need __declspec(uuid(..)) and __uuidof support"
Mucking about on Google only gave me some posts on adding #define DECLSPEC_UUID(guid) which doesn't help at all.
So my question is, has anyone ever successfully compiled a Borland C++ project (or an application / DLL created in Borland) for 64 bit (plus a step-by-step on how)?
You cannot compile C++Builder RTL/VCL code with Visual Studio. You will have to either port the code to Visual C++ or other C++ compiler and use its frameworks instead of Embarcadero's, or else re-write the code in Delphi XE2 so you can continue using Embarcadero's RTL/VCL and the Delphi 64-bit compiler.