LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-17-2004, 06:41 AM   #1
vipinsharma
LQ Newbie
 
Registered: May 2004
Posts: 9

Rep: Reputation: 0
Question 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
 
Old 05-17-2004, 11:34 AM   #2
Corneflex
LQ Newbie
 
Registered: May 2004
Location: France
Distribution: mandrake 9.2
Posts: 5

Rep: Reputation: 0
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
 
Old 09-25-2005, 11:05 AM   #3
mjoachimiak
LQ Newbie
 
Registered: Sep 2005
Location: Poland
Posts: 1

Rep: Reputation: 0
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

Last edited by mjoachimiak; 09-25-2005 at 11:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception Handling C++ Hady Programming 3 07-26-2005 11:07 PM
help createing exception class from base STL exception qwijibow Programming 4 04-20-2005 05:23 AM
Exception handling compilation errors ashwinipahuja Programming 6 07-03-2004 06:46 AM
python; exception handling TheLinuxDuck Programming 2 08-20-2003 02:01 PM
Runtime Exception vs. Exception mikeshn Programming 1 09-22-2002 05:33 AM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration