enabling unwind semantics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • v4vijayakumar

    enabling unwind semantics

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

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

  • Ian Collins

    #2
    Re: enabling unwind semantics

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

    Try a VC++ group.

    --
    Ian Collins.

    Comment

    • Rolf Magnus

      #3
      Re: enabling unwind semantics

      v4vijayakumar wrote:
      [color=blue]
      > what "enabling unwind semantics" occording to Microsoft (R) 32-bit
      > C/C++ Optimizing Compiler.
      >
      > C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\os tream(574)
      > : warnin
      > g C4530: C++ exception handler used, but unwind semantics are not
      > enabled. Speci
      > fy /EHsc[/color]

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

      Comment

      • v4vijayakumar

        #4
        Re: enabling unwind semantics

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

        Comment

        • v4vijayakumar

          #5
          Re: enabling unwind semantics

          no.

          "cl test1.cpp" fails with many errors but "cl /EHsc test1.cpp" compiles
          fine.

          C:\tmp\cpp>cl test1.cpp
          Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
          80x86
          Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

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


          C:\tmp\cpp>cl /EHsc test1.cpp
          Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
          80x86
          Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

          test1.cpp
          Microsoft (R) Incremental Linker Version 7.10.3077
          Copyright (C) Microsoft Corporation. All rights reserved.

          /out:test1.exe
          test1.obj

          C:\tmp\cpp>

          Comment

          • Ian Collins

            #6
            Re: enabling unwind semantics

            v4vijayakumar wrote:[color=blue]
            > you mean, there can not be a c/c++ compiler in windows, other than
            > vc++?
            >[/color]
            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.

            --
            Ian Collins.

            Comment

            • Rolf Magnus

              #7
              Re: enabling unwind semantics

              v4vijayakumar wrote:
              [color=blue]
              > you mean,[/color]

              Who? Please quote context.
              [color=blue]
              > there can not be a c/c++ compiler in windows, other than
              > vc++?[/color]

              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.

              Comment

              • v4vijayakumar

                #8
                Re: enabling unwind semantics

                > output
                from some microsoft compiler

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

                Comment

                • Ian Collins

                  #9
                  Re: enabling unwind semantics

                  v4vijayakumar wrote:[color=blue][color=green]
                  >>output[/color]
                  >
                  > from some microsoft compiler
                  >
                  > error message itself says it is "Microsoft (R) 32-bit C/C++ Optimizing
                  > Compiler".
                  >[/color]
                  So find an appropriate microsoft group and ask there. That's where the
                  users of the compiler will be able to help you.

                  --
                  Ian Collins.

                  Comment

                  • v4vijayakumar

                    #10
                    Re: enabling unwind semantics

                    Rolf Magnus wrote:
                    blah blah blah

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

                    Comment

                    • Ian Collins

                      #11
                      Re: enabling unwind semantics

                      v4vijayakumar wrote:[color=blue]
                      > Rolf Magnus wrote:
                      > blah blah blah
                      >
                      > just wanted to know what "enabling unwind semantics" (may be related to
                      > stack) means.
                      >[/color]
                      Then ask those who might know!

                      --
                      Ian Collins.

                      Comment

                      • Flash Gordon

                        #12
                        Re: enabling unwind semantics

                        v4vijayakumar wrote:[color=blue]
                        > you mean, there can not be a c/c++ compiler in windows, other than
                        > vc++?[/color]

                        Please provide context when replying. See the section about Google in


                        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.
                        --
                        Flash Gordon, living in interesting times.
                        Web site - http://home.flash-gordon.me.uk/
                        comp.lang.c posting guidelines and intro:

                        Comment

                        • Rolf Magnus

                          #13
                          Re: enabling unwind semantics

                          v4vijayakumar wrote:
                          [color=blue]
                          > just wanted to know what "enabling unwind semantics" (may be related to
                          > stack) means.[/color]

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

                          Comment

                          • Flash Gordon

                            #14
                            Re: enabling unwind semantics

                            v4vijayakumar wrote:[color=blue]
                            > Rolf Magnus wrote:
                            > blah blah blah
                            >
                            > just wanted to know what "enabling unwind semantics" (may be related to
                            > stack) means.[/color]

                            So go ask where you might get an answer, as has been suggested.
                            --
                            Flash Gordon, living in interesting times.
                            Web site - http://home.flash-gordon.me.uk/
                            comp.lang.c posting guidelines and intro:

                            Comment

                            • Walter Roberson

                              #15
                              Re: enabling unwind semantics

                              In article <1146648174.544 988.91240@u72g2 000cwu.googlegr oups.com>,
                              v4vijayakumar <v4vijayakumar@ yahoo.com> wrote:[color=blue][color=green]
                              >> output[/color]
                              >from some microsoft compiler[/color]
                              [color=blue]
                              >error message itself says it is "Microsoft (R) 32-bit C/C++ Optimizing
                              >Compiler".[/color]

                              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\os tream(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
                              Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


                              Or if you prefer the more authorative saying of the same thing,
                              Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

                              --
                              Prototypes are supertypes of their clones. -- maplesoft

                              Comment

                              Working...