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.

Can't simulate when using C++ IOSTREAM

Hello,

 

I am using CCSv4 and have created a simple hello world test project to begin debugging some problems in a much larger/more complex c++ project.  My main.cpp file consists solely of:

 

#include <iostream>

using namespace std;

int main(void)

{

printf("hello world");

return 0;

}

 

When I launch the TI Debugger using various built-in simulators the code fails to simulate.  I have tried swapping the C++ out for the C equivalent given in the hello world tutorials:

 

#include <stdio.h>

 

int main(void)

{

printf("hello world");

return 0;

}

 

And everything works (although it's not very interesting yet).

 

In the debugger of the C version I have verified I can trace from the bootstrap code to the _main_args symbol to the main function, hence its proper execution.  In the debugger of the C++ version I attempt to trace from the bootstrap code to the main function and the bootstrapper gets lost in NOP land somewhere along the way, never reaching main.  There is no _main_args symbol defined in this version.  I have tried using simulators from several different families with all the same results.  I don't have any hardware to test this on, so I am strictly simulation.  In both the C and C++ version the file is being compiled as C++.  I have also tried setting _main as the entry point for the C++ version and this works, but it skips all the critical bootstrapping.

 

 

Thanks,

JoRyTe