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.

CCSv5 and IOSTREAM



I am new to CCSv5, and I have the AM335x starter kit.

So I followed the example in CCSv5 where you set up the Matrix Browser example from Qt and do the Qt
bin and include paths.

But when I do the make build,  I do get the make file outputs as shown on the example,  but I also get
an error on CCSv5 saying that  Symbol 'cerr" in unresolved,  and that #include <iostream> is not found
or something to that result.

So I know where the iostream is on the project   ...c++/4.7.3/iostream,   but I am not sure if the compiler
is able to see it and how to set the path to it.   

So I would go to windows -> preferences -> general ->  c/c++  and then what?

I know there must be a ridiculous simple solution, but I just started using CCSv5 and I am lost

 

 

  • Hi,

    Here how you include header files:

    Right click on project -> properties

    Regards,

    Gautam

  • Thanks Guantam.

        Now I can insert a include search path.   Now the problem is which search path to use for the <iostream>,  there is one in my Linux host machine, one in the TI-SDK from which the example program is built from, and then there is one in the target AM335x starter kit that I am using.  

       I am doing the example program in the CCSv5 manual where you open the Gt project called 'Matrix Browser 2.0'  and the program uses the 'cerr' function of <iostream> and the IDE says there is an unresolved issue with 'cerr' and also unresolved include  <iostream> 

       So I added the external path   /home/user/ti-sdk-.../linux-devkit/armv7ahf...gnueabi/c++/4.73   and then <iostream> is unresolved, but then 'cerr' still remains unresolved because it is  "extern ostream cerr"  in iostream i.e. defined elsewhere.   So now what?

  • Guantam,

       I just answered my question.  I just add 'cerr' as a 'preprocessor symbol" and then the ide accepts it.

     

    Thanks.

    Rod