This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/LAUNCHXL-CC1310: Error at using STL vector library

Part Number: LAUNCHXL-CC1310

Tool/software: TI C/C++ Compiler

Hello, I have a program working but I want to use the vector c++ library. I only insert the "#include<vector>" and inmmediatly get 78 compiling errors:

Description Resource Path Location Type
#149 declaration is incompatible with builtin "int abs(int)" (declared at line 140 of "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdlib.h") .ccsproject /Copy of MESH_SENSOR_NEW line 103, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#170 a function type is not allowed here .ccsproject /Copy of MESH_SENSOR_NEW line 157, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#171 expected a declaration .ccsproject /Copy of MESH_SENSOR_NEW line 259, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#20 identifier "__false_type" is undefined .ccsproject /Copy of MESH_SENSOR_NEW line 250, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#20 identifier "__false_type" is undefined .ccsproject /Copy of MESH_SENSOR_NEW line 251, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#249 function "abs" has already been defined .ccsproject /Copy of MESH_SENSOR_NEW line 125, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#29 expected an expression .ccsproject /Copy of MESH_SENSOR_NEW line 103, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#29 expected an expression .ccsproject /Copy of MESH_SENSOR_NEW line 111, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#29 expected an expression .ccsproject /Copy of MESH_SENSOR_NEW line 125, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#29 expected an expression .ccsproject /Copy of MESH_SENSOR_NEW line 126, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#41 expected an identifier .ccsproject /Copy of MESH_SENSOR_NEW line 111, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#41 expected an identifier .ccsproject /Copy of MESH_SENSOR_NEW line 126, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s__cstdlib.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 103, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 107, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 110, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 111, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 113, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 114, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 116, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 119, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 122, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 126, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 129, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 133, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 136, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 139, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 143, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 148, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 149, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 157, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 158, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 162, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 166, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 175, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 184, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 190, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 197, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 205, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 212, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 223, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 226, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 227, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 262, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 264, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 267, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 288, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 290, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 292, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 294, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 296, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 299, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 300, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 301, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 302, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 41, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 45, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 48, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 52, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 55, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 58, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 62, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 65, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 69, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 72, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 76, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 79, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 83, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 83, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 86, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 87, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 90, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 91, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 93, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 95, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#66 expected a ";" .ccsproject /Copy of MESH_SENSOR_NEW line 99, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_traits.h C/C++ Problem
#873 "..." is not allowed .ccsproject /Copy of MESH_SENSOR_NEW line 160, external location: C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.0.LTS\include\s_type_manips.h C/C++ Problem
gmake: *** [sensor.obj] Error 1 Copy of MESH_SENSOR_NEW C/C++ Problem
gmake: Target 'all' not remade because of errors. Copy of MESH_SENSOR_NEW C/C++ Problem

I noticed that there are sintaxis problems in all the dependant files of vector... I tried almost everything in the "project properties" related to C++ compiling. I think this is a compiler/preprocessor issuse. 

Please help, thank you

Regards,

Diego Tamayo