Menu

#186 bad_cast exception unsupported in MSVS 2005sp1

5.1
open
nobody
2
2008-09-20
2008-09-11
No

When compiling a proprietary .DLL file that includes a proprietary static library, I got an error that stated that bad_cast exception is not a member of stlp_std. Both the static library and the .DLL include the STLPort headers and are linked against stlportd_static.5.1.lib version 5.1.5 .

It should be handled fine by Visual Studio's headers but I don't know where to modify STLPort to get it to work.

The context of the error was in an exception handler that replaces all of the standard exceptions with internal ones.

The unit tests for stlportd_static.lib show 395 tests ok, 1 ignored.

Discussion

  • Samuel D. Crow

    Samuel D. Crow - 2008-09-11

    this should compile

     
  • Samuel D. Crow

    Samuel D. Crow - 2008-09-12

    I've discovered the cause: two exceptions in then std namespace are defined using macros. Since the STD namespace is redirected using a macro by STLport in the first place, the macros must have been defined incorrectly.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-09-20
    • priority: 5 --> 2
     

Log in to post a comment.