Mail Archives: djgpp/2000/10/20/20:18:36
Thanks, Andris.
I should have thought of "const" myself.
pavenis AT lanet DOT lv wrote:
>
> Try this:
> [...]
> catch (const char *msg) { cout << "const char* catched: " << msg << endl; }
> [...]
> and You'll see the source of problem ...
There was a program in a book I'm reading on VC++ programming. It
worked fine on Microshaft, but the GXX executable kept yelling
"Abort!" I pared down the original program, trying to isolate the
problem. I tried a lot of things, but not "const".
That will teach me to trust what I read -- as per the recent thread on
Schildt's books. (I did like his Born To Code In C, though.)
Thanks again!
- Raw text -