enabling unwind semantics

V

v4vijayakumar

what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)
: warnin
g C4530: C++ exception handler used, but unwind semantics are not
enabled. Speci
fy /EHsc
 
I

Ian Collins

v4vijayakumar said:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.
Wrong group (comp.lang.c) on two counts, C++ and windows.

Try a VC++ group.
 
R

Rolf Magnus

v4vijayakumar said:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)
: warnin
g C4530: C++ exception handler used, but unwind semantics are not
enabled. Speci
fy /EHsc

I can only guess that this means you have disabled exception handling in
your compiler.
 
I

Ian Collins

v4vijayakumar said:
you mean, there can not be a c/c++ compiler in windows, other than
vc++?
Your original post (which you should quote, by the way) showed output
from some microsoft compiler or another, that's why I suggested asking
on one of their groups.
 
R

Rolf Magnus

v4vijayakumar said:
you mean,

Who? Please quote context.
there can not be a c/c++ compiler in windows, other than
vc++?

1. There is no such thing as "C/C++". C and C++ are two distinct languages.
2. Exception handling is C++ specific, since C doesn't support it, so
comp.lang.c has nothing to do with it.
3. Questions about compilers or system specific ones are off-topic in
comp.lang.c++ either, because this group is only about the C++ language
itself, not about any specific tools.

So you should find a newsgroup about your specific compiler (VC++) and ask
the question there.
 
F

Flash Gordon

v4vijayakumar said:
you mean, there can not be a c/c++ compiler in windows, other than
vc++?

Please provide context when replying. See the section about Google in
http://clc-wiki.net/wiki/Intro_to_clc

Your original message clearly indicated you were using MS VC++ hence the
redirection to a group for that compiler when you ask something about
the compiler. The language itself does not define compiler options.
 
V

v4vijayakumar

output
from some microsoft compiler

error message itself says it is "Microsoft (R) 32-bit C/C++ Optimizing
Compiler".
 
V

v4vijayakumar

Rolf Magnus wrote:
blah blah blah

just wanted to know what "enabling unwind semantics" (may be related to
stack) means.
 
R

Rolf Magnus

v4vijayakumar said:
just wanted to know what "enabling unwind semantics" (may be related to
stack) means.

So you should find a newsgroup about your specific compiler (VC++) and ask
the question there.
 
F

Flash Gordon

v4vijayakumar said:
Rolf Magnus wrote:
blah blah blah

just wanted to know what "enabling unwind semantics" (may be related to
stack) means.

So go ask where you might get an answer, as has been suggested.
 
W

Walter Roberson

from some microsoft compiler
error message itself says it is "Microsoft (R) 32-bit C/C++ Optimizing
Compiler".

Not in anything you posted in your original question. You said
it was that, you did not quote any *error message* that said it was.

The error message that you -did- quote started with:

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)

which clearly indicates VC++, and hence suggesting that you look
in a VC++ group was exactly appropriate.


If you were to google on "unwind semantics are not enabled"
then you would find your answer easily. In particular, see
http://www.geocities.com/Jeff_Louie/problems.htm#Warning

Or if you prefer the more authorative saying of the same thing,
http://msdn.microsoft.com/archive/en-us/dnarvc/html/msdn_stlfaq.asp?frame=true
 
M

Martin Ambuhl

v4vijayakumar said:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)
: warnin
g C4530: C++ exception handler used, but unwind semantics are not
enabled. Speci
fy /EHsc

Questions about the C++ programming language should never be posted to
< Some of the folks at <may offer
you an answer, but they are misguided. Questions about
implementation-specific details, such as yours, should go to a
newsgroup, mailing list, or tech support for your implementation.
Microsoft has provided several of these for you, nad there are others
independent of MS. Use them.

<removed from follow-ups. Perhaps the remaining
newsgroup to which you posted should also be removed: I'll leave that to
others.
 
L

Larry I Smith

v4vijayakumar said:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)
: warnin
g C4530: C++ exception handler used, but unwind semantics are not
enabled. Speci
fy /EHsc

The error message says it all...

You are using C++ exceptions in your code, but by default,
support for C++ exceptions is disabled in the compiler.
As directed by the error message, you must add the

/EHsc

compiler option to your compile command line to tell the
compiler to enable support for C++ exceptions.

Larry
 
M

Mark McIntyre

Rolf Magnus wrote:
blah blah blah

just wanted to know what "enabling unwind semantics" (may be related to
stack) means.

Its some feature of your compiler. Did you read the documentation or
search the maker's website?

On second thoughts, why not ask in uk.lang.semantics, then insult
people who suggest you ask in the right place?

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 
A

Alf P. Steinbach

* v4vijayakumar:
what "enabling unwind semantics" occording to Microsoft (R) 32-bit
C/C++ Optimizing Compiler.

C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574)
: warnin
g C4530: C++ exception handler used, but unwind semantics are not
enabled. Speci
fy /EHsc

Microsoft's compiler, although one of the most standard-conforming when
you provide appropriate switches, has completely non-standard behavior
/by default/.

By default you have (1) no exception handling, (2) no RTTI, (3) no
wchar_t type, (4) non-standard scope for variables declared in for loops
and while loops, (5) standard 'main' not supported for GUI program.

Check the compiler's command line help info for appropriate switches;
direct further questions to some Microsoft group.
 
G

Gernot Frisch

By default you have (1) no exception handling, (2) no RTTI, (3) no
wchar_t type, (4) non-standard scope for variables declared in for
loops and while loops, (5) standard 'main' not supported for GUI
program.

can you explain (4)?

is that:
for(int i=1; i; --i);
{
int me=i;
}

now - there's something wrong with 'me'?
 
A

Alf P. Steinbach

* Gernot Frisch:
can you explain (4)?

is that:
for(int i=1; i; --i);
{
int me=i;
}

now - there's something wrong with 'me'?

for(int i=1; i; --i);
{
}
int me=i;

Here there's "something wrong" with 'me'...

A conforming compiler will not allow that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top