CMake: “cl.exe not able to compile a simple test p

2019-09-05 23:26发布

I want to build DCMTK in Visual Studio 2010.

I followed the advice here enter link description here, as the image shows.

enter image description here And I still get the same error. Any ideas?

标签: cmake dcmtk
2条回答
我想做一个坏孩纸
2楼-- · 2019-09-05 23:49

Run the following script before running cmake.

>vcvars32  (to set some system vars, C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat)
查看更多
唯我独甜
3楼-- · 2019-09-05 23:50

A similar problem has been reported here

The solution is:

First, check if you have .NET 4.5 on your system. If you do, that is very likely causing the problem. Try either upgrading to VS2010 SP1 or downgrade .NET to 4.0

CAUSES:

This error appear because you have installed Visual C++ 2012 after you have actually installed Visual C++ 2010 in your system; another cause is because .net Framework 4.5 replace .net Framework 4.0; .net Framework corrupted files;

HOW TO SOLVE:

Uninstall .NET Framework 4.5 from your system; then download .NET Framework 4.0 and install it; this should fix your problem;

查看更多
登录 后发表回答