Monday, February 3, 2020

tips on fixing compilation error of temp file cleaning tool

tips on fixing compilation error of temp file cleaning tool

Error D8016 '/ZI' and '/Gy-' command-line options are incompatible DirClean C:\Demo\dirclean\cl

Note: If you get the error “ Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible” -

Solution 1 : Use “Release” mode

Solution 2 : Go to “Project”>”Properties”>”C/C++”>”General” and replace the “Debug Information Format” from “/Zl” to “/Zi”

  1. Note if you get the error command line error d8016 zi
  2. Visual Studio error D8016: '/ZI' and '/Gy' command-line options are incompatible
  3. Build failed with D8016 'ZI' and '/Gy-' command-line options are incompatible message
  4. Error_D8016_'/ZI' and '/Gy-' command-line options are incompatible

issue:: Error C1189 #error: MFC does not support WINVER less than 0x0501. Please change the definition of WINVER in your project properties or precompiled header. DirClean c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.16.27023\atlmfc\include\afxv_w32.h 40

  1. MFC does not support WINVER less than 0x0501
  2. Converting Projects from VC++ 6.0 to Visual Studio 2005

Error C1083 Cannot open include file: 'atlimpl.cpp': No such file or directory DirClean c:\demo\dirclean\stdafx.cpp 34

the answer is: in my case: remove atlimp.h from stdafx.cpp file.

NeoKenshinX wrote: I'm migrating a VS 6.0 C++ project to VS 2010. The compiler tells me to remove following files:

statreg.cpp is obsolete. Please remove it from your project. atlimpl.cpp is obsolete. Please remove it from your project.

How can I remove these files (they are in the "External Dependencies" folder)?

They are #included in stdafx.cpp, if I recall correctly (or is it stdafx.h? ) And why is it necessary to remove them?

It's not necessary, but if you don't, you'll see this annoying warning every time you build. If you look at these files, they consist of nothing but #pragma message "statreg.cpp is obsolete. Please remove it from your project."

  1. statreg.cpp, atlimpl.cpp is obsolete
  2. error C1083:cannot open include file: 'atlimpl cpp': No such file or directory
  3. Cannot open include file with Visual Studio
  4. Error 102 error C1083 : Cannot open include file: 'atlimpl.cpp': No such file or directory
  5. Error 102 error C1083 : Cannot open include file: 'atlimpl.cpp': No such file or directory

issue is:

Error C2316 'CMemoryException': cannot be caught as the destructor and/or copy constructor are inaccessible or deleted DirClean c:\demo\dirclean\cshellfileop.cpp 82

  1. why does the below code compile successfully in VS2010?
  2. Compiler Error C2316
  3. Visual Studio Context Menu Shortcut

No comments:

Post a Comment