ホーム » 2011 » 10月 » 12

日別アーカイブ: 2011/10/12

2011年10月
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

カテゴリー

アーカイブ

ブログ統計情報

  • 77,368 アクセス



VC6→VC8→MBCS→UNICODE C4651

c:\….\masteddg.cpp(4) : warning C4651: ‘/D_MBCS’ がプリコンパイル済みヘッダーに定義されていますが、現在のコンパイル処理には定義されていません。

vcproj 内の “;_AFXDLL;_MBCS;$(NoInherit)” を削除
 _AFXDLL _MBCS $(NoInherit)


VC 7 などで追加したファイルは,以下の様にシンプル.
<File
  RelativePath=".\MastEdDg.cpp">
  </File>

これは,VC 6 で追加したもの.
<File
  RelativePath="MastS.cpp">
  <FileConfiguration
    Name="Debug|Win32">
    <Tool
      Name="VCCLCompilerTool"
      PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
      BasicRuntimeChecks="3"/>
    </FileConfiguration>
  <FileConfiguration
    Name="Release|Win32">
    <Tool
      Name="VCCLCompilerTool"
      PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"/>
    </FileConfiguration>
  </File>


2021/01
VC 12 LNK1104 , VC 14.2 LNK2019
コンパイル対象のソースをすべて選択して「プリプロセッサの定義」を
VC 2008 までは「ブランク」に.
VC 2010 以降は <親またはプロジェクトの既定値から継承> にする.

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.