Hello,
I am trying to run a simple C++ project in code composer. For legacy issues I am only able to use CCS v2. I am trying to compile the following cpp source file:
#include <stdio.h>
#include <string.h>
class myClass{
};
int main(){
string myString;
return 0;
}
I am getting the following error:
------------------------------ Test.pjt - Debug ------------------------------
"c:\ti\c6000\cgtools\bin\cl6x" -g -q -fr"c:/documents and settings/all users/desktop/Test/Debug" -d"_DEBUG" -mv6700 -@"../../all users/desktop/Test/Debug.lkf" "main.cpp"
"main.cpp", line 11: error: identifier "string" is undefined
"main.cpp", line 11: warning: variable "myString" was declared but never referenced
1 error detected in the compilation of "main.cpp".
Build Complete,
1 Errors, 1 Warnings, 0 Remarks.
---------------------------------------------
if I change the line:
std::string myString;
I get:
------------------------------ Test.pjt - Debug ------------------------------
"c:\ti\c6000\cgtools\bin\cl6x" -g -q -fr"c:/documents and settings/all users/desktop/Test/Debug" -d"_DEBUG" -mv6700 -@"../../all users/desktop/Test/Debug.lkf" "main.cpp"
"main.cpp", line 11: error: namespace "std" has no member "string"
"main.cpp", line 11: warning: variable "myString" was declared but never referenced
1 error detected in the compilation of "main.cpp".
Build Complete,
1 Errors, 1 Warnings, 0 Remarks.
---------------------------
Any help would be greatly appreciated.
Regards,
Bruno