undef ref wcpp_4_fs_handler When Using Try Catch in Watcom 1.9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poitiere
    New Member
    • Sep 2010
    • 3

    undef ref wcpp_4_fs_handler When Using Try Catch in Watcom 1.9

    Hi all I have been using WATCOM C++ for some time quite ok. Now I want to use C++ exception handling.

    I can make little Micky Mouse programs work but when I add try and catch to my existing code I get an undefined ref of __wcpp_4_fs_han dler__.

    I am going spare trying to figure this out.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Maybe you could post a sample of your code illustrating the problem?

    Comment

    • poitiere
      New Member
      • Sep 2010
      • 3

      #3
      Hi weaknessforcats

      Thanks for caring: I didn't post any code because there is too much. Out of 200 c++ files about 55 had the undef.
      As you can surmise I have solved it the hardway trying to suss out why some had it and others didn't but each time I thought I had it sussed I implemented the complexity in the Micky Mouse test program. But all was kosher. I made 1 or 2 files clean by removing local objects from methods and initializing in the constructor init list.

      But it didn't make sense; I studied c++ by stroustrup (man that cat is a clear thinker (not like these politicians)) and what I was doing was cool.

      Eventually it dawned on me that there must be something in my header files causing Watcom to "freak". By process of elimination I traced it to an old legacy cdecl pragma unused but still present in a header.

      Comment

      Working...