ATLヘッダの利用方法
Posted: 2013年4月02日(火) 11:28
C++2010 Express editionを使用しています.
最近,bitmapファイルを読み込むためにCImage クラスを利用できることを知り,atlimage.h,atl.libを読み込んでコンパイルしました.すると下記のようなエラーと警告が出現しました.対処策の助言をお願いします.
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): warning C4114: same type qualifier used more than once
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): error C2632: 'char' followed by 'char' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): warning C4091: 'typedef ' : ignored on left of 'unsigned char' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): error C2632: 'short' followed by 'short' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): error C2632: 'short' followed by 'int' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): warning C4091: 'typedef ' : ignored on left of 'short' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(172): warning C4005: 'USHORT_MAX' : macro redefinition
最近,bitmapファイルを読み込むためにCImage クラスを利用できることを知り,atlimage.h,atl.libを読み込んでコンパイルしました.すると下記のようなエラーと警告が出現しました.対処策の助言をお願いします.
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): warning C4114: same type qualifier used more than once
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): error C2632: 'char' followed by 'char' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(33): warning C4091: 'typedef ' : ignored on left of 'unsigned char' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): error C2632: 'short' followed by 'short' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): error C2632: 'short' followed by 'int' is illegal
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(34): warning C4091: 'typedef ' : ignored on left of 'short' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Windows\v7.1\include\intsafe.h(172): warning C4005: 'USHORT_MAX' : macro redefinition