问题描述
1>------Buildstarted:Project:gddlcs,Configuration:DebugWin32------1>Compiling...1>stdafx.cpp1>Compiling...1>MyComplex.cpp1>gddlcs.cpp1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(234):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(235):errorC2065:'Yes':undeclaredidentifier1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(237):errorC2039:'Maybe':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(237):errorC2065:'Maybe':undeclaredidentifier1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(239):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(239):errorC2039:'AccessType':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(239):errorC2146:syntaxerror:missing';'beforeidentifier'SA_AccessType'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(239):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(239):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(240):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(240):errorC2039:'AccessType':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(240):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(240):errorC2146:syntaxerror:missing';'beforeidentifier'SA_NoAccess'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(242):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(242):errorC2146:syntaxerror:missing';'beforeidentifier'SA_Write'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(242):errorC2086:'constintgddlcs::AccessType':redefinition1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(243):errorC2039:'AccessType':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(243):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(243):errorC2146:syntaxerror:missing';'beforeidentifier'SA_ReadWrite'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(243):errorC2086:'constintgddlcs::AccessType':redefinition1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(246):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(246):errorC2039:'PreAttribute':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(246):errorC2146:syntaxerror:missing';'beforeidentifier'SA_Pre'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(249):errorC2146:syntaxerror:missing';'beforeidentifier'SA_InvalidCheck'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(249):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(249):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(250):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(250):errorC2039:'SuccessAttribute':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(250):errorC2146:syntaxerror:missing';'beforeidentifier'SA_Success'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(250):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(250):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(251):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(251):errorC2039:'PreBoundAttribute':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(251):errorC2146:syntaxerror:missing';'beforeidentifier'SA_PreBound'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(251):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(251):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(252):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(253):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(253):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(254):errorC3083:'vc_attributes':thesymboltotheleftofa'::'mustbeatype1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(254):errorC2039:'PostRangeAttribute':isnotamemberof'`globalnamespace''1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(254):errorC2146:syntaxerror:missing';'beforeidentifier'SA_PostRange'1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(254):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:programfilesmicrosoftvisualstudio9.0vcincludecodeanalysissourceannotations.h(254):errorC4430:missingtypespecifier-intassumed.Note:C++doesnotsupportdefault-int1>c:ProgramFilesMicrosoftVisualStudio9.0VCincludemath.h(109):errorC2337:'SA_Pre':attributenotfound1>c:ProgramFilesMicrosoftVisualStudio9.0VCincludemath.h(112):errorC2337:'SA_Pre':attributenotfound1>c:ProgramFilesMicrosoftVisualStudio9.0VCincludemath.h(112):fatalerrorC1003:errorcountexceeds100;stoppingcompilation1>AssemblyInfo.cpp1>GeneratingCode...1>Buildlogwassavedat"file://c:UsersyxcDocumentsVisualStudio2008ProjectsgddlcsgddlcsDebugBuildLog.htm"1>gddlcs-138error(s),0warning(s)==========Build:0succeeded,1failed,0up-to-date,0skipped==========
解决方案
解决方案二:
问题解决了么?
解决方案三:
没写usingnamespace使用namespace空间了,就得声明一下吧
解决方案四:
参考下这篇文章:errorC3083:'Office':thesymboltotheleftofa'::'mustbeatypeVS2010
解决方案五:
该回复于2012-02-11 19:58:30被版主删除
解决方案六:
参考链接:http://blog.csdn.net/asuskit/article/details/7211236
解决方案七:
[Quote=引用5楼asuskit的回复:]参考链接:http://blog.csdn.net/asuskit/article/details/7211236[/Quot是不知没写namespace空间或者是头文件
解决方案八:
用clr不要CLR/PURE