Tool/software: Code Composer Studio
I've done a simple program to test c++ with code composer to display to console. At first was unable to display with printf but that was fixed by increasing stack and heap size. Changed file name to cpp and tried adding a class and tried to display the value of a bool. Was able to make it work with printf but with cout it compiles but at runtime i get a error stating that ostream is not found.
Can't find a source file at "/tmp/scratch/jenkins-cvs/workspace/BuildAndValidate_Worker/build/arm/product/linux/lib-internal/src/libcxx/ostream"
Looking in the libcxx folder of the include folder there is a ostream file there.
#include <stdint.h>
#include <stdbool.h>
#include <iostream>
#include "controleur.cpp"
#include "stdio.h"
void main(void)
{
volatile uint32_t ui32Loop;
controleur controleur;
volatile bool test2;
printf ( "%d\n",controleur.getstate());
std::cout << controleur.getstate() ;
}
Thanks