#define INCLUDE_CPLUS
#define INCLUDE_CPLUS_STL
#define INCLUDE_CPLUS_STRING
#define INCLUDE_CPLUS_IOSTREAMS
#define INCLUDE_CPLUS_COMPLEX
#define INCLUDE_CPLUS_IOSTREAMS_FULL
#define INCLUDE_CPLUS_STRING_IO
#define INCLUDE_CPLUS_COMPLEX_IO
but when I downloaded the test.o with sourcecode like that.
#include <iostream>
using namespace std;
int test()
{
cout <<"Hello World"<< endl;
}
there are such errors
Errors while downloading C:/Tornado2.2/target/proj/Project1/SIMNTgnu/test.o:
___terminate
___sjthrow
_endl__FR7ostream
_cout
___ls__7ostreamPCc
___rtti_si
___rtti_class
___rtti_user
How does this happen? Thanks a lot
"Xiangdong Peng" <peng...@msu.edu> wrote in message
news:b6s5r3$gc0$1...@msunews.cl.msu.edu...
Xiangdong Peng wrote:
> _______________________________________________
> VxWorks Users Group mailing list
> VxWe...@lbl.gov
> http://www-csg.lbl.gov/vxworks/
OK, basic questions since you are using the simulator, which does not
behave the same way as a real target:
1) After you built the simulator did you restart it. I don't mean
reboot it - that's not good enough. You must exit the process and
restart it.
2) When you started it, did you make sure it was set up to use your
custom simulator configuration, and not the default one. IIRC, the
simulator menu option/button will launch the configuration that came
on the CD. Unless that was the simulator config that you were
changing, restarting would not cause your changes to be included.
How can you check? Well, try looking up something like 'cout' or
'stream' from the Tornado WindSh window. If they're not there, then
you are not running a simulator image that contains the C++ runtime
support.
Also, I have a feeling that the file you should download is the .out
and not the .o - this doesn't matter much for C, but for C++ it could
as there is an additional step (munching) that is performed for C++
code. Spend 10 minutes and read the section of the User's Guide that
talks about developing C++ code to make sure you are downloading the
correct file.
HTH,
John...
=====
Rate Corporate America at http://exec-ratings.bluedonkey.org
"John" <john_...@yahoo.com> wrote in message
news:488e459a.03040...@posting.google.com...