Menu

VC++ problem "different storage cl...

Help
2011-02-02
2013-04-25
  • ya, i suk at c++

    Hey guys,
    Im new to c++ and wanted to program my NXT with NXT++, but cant get it to work
    Followed all the steps on the wiki
    when i try and build, it says this:
    1>---- Build started: Project: Room Explorer, Configuration: Debug Win32 ----
    1>  main.cpp
    1>c:\downloads\final\include\fantom\tstatus.h(218): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
    1>c:\downloads\final\include\fantom\tstatus.h(219): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(175) : see declaration of 'strncat'
    1>c:\downloads\final\include\fantom\tstatus.h(237): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
    1>c:\downloads\final\include\fantom\tstatus.h(238): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(175) : see declaration of 'strncat'
    1>c:\downloads\final\include\fantom\tstatus.h(299): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
    1>c:\downloads\final\include\fantom\tstatus.h(300): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1>          c:\program files\microsoft visual studio 10.0\vc\include\string.h(175) : see declaration of 'strncat'
    1>c:\downloads\final\include\comm.h(29): error C2011: 'ErrorCode' : 'enum' type redefinition
    1>          c:\downloads\final\include\comm.h(29) : see declaration of 'ErrorCode'
    1>c:\downloads\final\include\comm.h(46): error C2011: 'NXTFile' : 'struct' type redefinition
    1>          c:\downloads\final\include\comm.h(46) : see declaration of 'NXTFile'
    1>c:\downloads\final\include\comm.h(104): error C2011: 'NXTFileIterator' : 'struct' type redefinition
    1>          c:\downloads\final\include\comm.h(104) : see declaration of 'NXTFileIterator'
    1>c:\downloads\final\include\comm.h(135): error C2011: 'NXTModule' : 'struct' type redefinition
    1>          c:\downloads\final\include\comm.h(135) : see declaration of 'NXTModule'
    1>c:\downloads\final\include\comm.h(166): error C2011: 'NXTModuleIterator' : 'struct' type redefinition
    1>          c:\downloads\final\include\comm.h(166) : see declaration of 'NXTModuleIterator'
    1>c:\downloads\final\include\comm.h(193): error C2011: 'Comm::NXTComm' : 'class' type redefinition
    1>          c:\downloads\final\include\comm.h(193) : see declaration of 'Comm::NXTComm'
    1>c:\downloads\final\include\nxt++.h(25): error C2011: 'SensorType' : 'enum' type redefinition
    1>          c:\downloads\final\include\nxt++.h(25) : see declaration of 'SensorType'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(240): error C2011: 'NXT::File::FileType' : 'enum' type redefinition
    1>          c:\downloads\final\include\nxt++.h(240) : see declaration of 'NXT::File::FileType'
    1>c:\downloads\final\include\nxt++.h(250): error C2011: 'NXT::File::FileMode' : 'enum' type redefinition
    1>          c:\downloads\final\include\nxt++.h(250) : see declaration of 'NXT::File::FileMode'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(36): error C2370: 'OUT_B' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(36) : see declaration of 'OUT_B'
    1>c:\downloads\final\include\nxt++.h(38): error C2370: 'OUT_C' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(38) : see declaration of 'OUT_C'
    1>c:\downloads\final\include\nxt++.h(40): error C2370: 'IN_1' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(40) : see declaration of 'IN_1'
    1>c:\downloads\final\include\nxt++.h(42): error C2370: 'IN_2' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(42) : see declaration of 'IN_2'
    1>c:\downloads\final\include\nxt++.h(44): error C2370: 'IN_3' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(44) : see declaration of 'IN_3'
    1>c:\downloads\final\include\nxt++.h(46): error C2370: 'IN_4' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(46) : see declaration of 'IN_4'
    1>c:\downloads\final\include\nxt++.h(34): error C2370: 'OUT_A' : redefinition; different storage class
    1>          c:\downloads\final\include\nxt++.h(34) : see declaration of 'OUT_A'
    1>c:\downloads\final\include\nxt++.h(34): fatal error C1003: error count exceeds 100; stopping compilation
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     
  • practisevoodoo

    practisevoodoo - 2011-02-14

    Can you post the code so that I can have a look?

     

Log in to post a comment.