"Oldrin" <om*****@yahoo.com> wrote in message
news:dd*************************@posting.google.co m...
When I run the program in Borland c++ it runs ok. However, if I had to
build an executable for the same program, then it doesn't run, as it
should be.
The warning that I get when run the program is as follows:
"string.cc (658,22) : Cannot create pre-compiled header: code in
header"
I am using strings and I have defined #include <string>.
If anyone knows the solution for my problem, I would appreciate to
hear it from you.
This is a stupid problem with Borland which is the compiler giving you too
many warnings. That warning has always been, and always will be, in
string.cc. Most compilers won't give you that warning as they realize that
the code you are including could have a precompiled header. Unfortunately,
the makers of Borland didn't realize that, so they threw that warning in
there. It can be safely ignored. That warning also doesn't tell you the
reason your code is crashing. As this is a compiler-specific question,
you'll probably want to ask somewhere over in the borland.public.something
newsgroups.