Facing compile errors in a header file

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I was just trying to open a code of mine written a long time ago but faced about 25 compile time errors in header file.
  • this code deals with opencv libraries, so had to link libs and other needed files
  • The original code was generated on other computer.
THe following is the error log:1>------ Build started: Project: camera, Configuration: Debug Win32 ------
1>Compiling...
1>camera.cpp
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(47) : error C2011: vc_attributes::YesNoMaybe : enum type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(47) : see declaration of vc_attributes::YesNoMaybe
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(57) : error C2011: vc_attributes::AccessType : enum type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(57) : see declaration of vc_attributes::AccessType
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(71) : error C2011: vc_attributes::Pre : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(71) : see declaration of vc_attributes::Pre
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(68) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(102) : error C2011: vc_attributes::Post : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(102) : see declaration of vc_attributes::Post
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(99) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(133) : error C2011: vc_attributes::FormatString : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(133) : see declaration of vc_attributes::FormatString
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(145) : error C2011: vc_attributes::InvalidCheck : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(145) : see declaration of vc_attributes::InvalidCheck
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(142) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(155) : error C2011: vc_attributes::Success : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(155) : see declaration of vc_attributes::Success
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(166) : error C2011: vc_attributes::PreBound : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(166) : see declaration of vc_attributes::PreBound
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(163) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(176) : error C2011: vc_attributes::PostBound : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(176) : see declaration of vc_attributes::PostBound
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(173) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(186) : error C2011: vc_attributes::PreRange : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(186) : see declaration of vc_attributes::PreRange
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(183) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(198) : error C2011: vc_attributes::PostRange : struct type redefinition
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(198) : see declaration of vc_attributes::PostRange
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(195) : error C3094: repeatable: anonymous usage not allowed
1> c:usersdhruvik pateldocumentsvisual studio 2008projectscameracamerapredefined c++ attributes (compiler internal)(147) : see declaration of repeatable
1> attribute can only be applied to: class, struct
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(235) : error C2370: SA_Yes : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(235) : see declaration of SA_Yes
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(236) : error C2370: SA_No : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(236) : see declaration of SA_No
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(237) : error C2370: SA_Maybe : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(237) : see declaration of SA_Maybe
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(240) : error C2370: SA_NoAccess : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(240) : see declaration of SA_NoAccess
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(241) : error C2370: SA_Read : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(241) : see declaration of SA_Read
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(242) : error C2370: SA_Write : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(242) : see declaration of SA_Write
1>c:program files (x86)microsoft visual studio 9.0vcincludecodeanalysissourceannotations.h(243) : error C2370: SA_ReadWrite : redefinition; different storage class
1> c:program filesmicrosoft visual studio 9.0vcincludecodeanalysissourceannotations.h(243) : see declaration of SA_ReadWrite
1>g:projectsvirtual sensecameracameracamera.cpp(113) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(114) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(115) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(116) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(117) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(118) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(119) : warning C4244: = : conversion from double to int, possible loss of data
1>g:projectsvirtual sensecameracameracamera.cpp(120) : warning C4244: = : conversion from double to int, possible loss of data
1>Build log was saved at "file://g:ProjectsVirtual SensecameracameraDebugBuildLog.htm"
1>camera - 25 error(s), 8 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


seeking some help

View the full article
 
Back
Top