ホーム » VC » C2059 , C2238

2016年11月
 12345
6789101112
13141516171819
20212223242526
27282930  

カテゴリー

アーカイブ

ブログ統計情報

  • 77,419 アクセス



C2059 , C2238

あるプロジェクト VC 6 をビルドしていてエラー.VC 12 などでは OK .


——————–構成: BLCombi – Win32 Debug——————–
コンパイル中…
ComUse02.cpp
c:\program files\…\vc98\include\oaidl.h(446) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(446) : error C2238: ‘;’ の前に不正なトークンがあります。
c:\program files\…\vc98\include\oaidl.h(452) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(452) : error C2238: ‘;’ の前に不正なトークンがあります。
c:\program files\…\vc98\include\oaidl.h(519) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(519) : error C2238: ‘;’ の前に不正なトークンがあります。
c:\program files\…\vc98\include\oaidl.h(526) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(526) : error C2238: ‘;’ の前に不正なトークンがあります。
c:\program files\…\vc98\include\oaidl.h(912) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(1294) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(3258) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(3615) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(4487) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(4717) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(4810) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(5013) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(5082) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(5162) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(6733) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(6742) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(6802) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oaidl.h(6811) : error C2059: 構文エラー : ‘constant’
c:\program files\…\vc98\include\oleauto.h(61) : warning C4091: 空白の宣言が見つかりました。
c:\program files\…\vc98\include\oleauto.h(61) : error C2143: 構文エラー : ‘;’ が ‘constant’ の前に必要です。
c:\program files\…\vc98\include\oleauto.h(61) : fatal error C1004: 予期せぬ EOF が検出されました。
cl.exe の実行エラー
ComUse02.obj – エラー 24、警告 1


ここで使用している Calc.cxx が原因.
#include <ShlObj.h> を先頭に追加して OK .

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

コメントする

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

%d人のブロガーが「いいね」をつけました。