LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Exception Handling (https://www.linuxquestions.org/questions/programming-9/exception-handling-182382/)

vipinsharma 05-17-2004 06:41 AM

Exception Handling
 
Hi all,
I was trying my hand for the first time on the exception handling at Linux Platform. Here i am facing a very peculiar problem which is that once i make any modification in my source and compile it without dist cleaning the project an error with the following error message is produced.

Error Message:
exception:1037:stray '\257' in the program.

But if i dist clean and reconfigure and then execute it works perfectly fine.

Can anybody help me in coping with this problem.

I am working on g++ and have already included 'include exception handling ' in the compiler options.

Waiting for reply.
Vipin Sharma

Corneflex 05-17-2004 11:34 AM

Hello,
I have had the same error "stray \257" but not one the same problem and for me it came from the fact that I've made some source code copy/paste from konqueror browser to kdevelop c++ editor. When you do that there are some invisible caracter that compiler doesn't recognize and output "stray \257" error. My solution was to delete all blank spaces from the source code copied from konqueror

hope it helps

mjoachimiak 09-25-2005 11:05 AM

Yes. Konqueror has problems in copy/paste. The file which has been generated in Kdevelop from pasted text from Konqueror has some kind of trash in it. These are sings beyond 127 decimal number. For me it was \160 which is A0 and these I had after every space.

My error was error: stray '\160' ....
I wrote simple prog which make this trash going to /dev/null :).

http://dysparycja.prv.pl/garbage/garbage.cpp


All times are GMT -5. The time now is 03:38 AM.