Help save net neutrality! Learn more.
Close

#106 g++4.4.3: virtual ~plstream(); -> virtual ~plstream(){};

closed
nobody
None
5
2011-07-14
2011-05-04
No

As mentioned here: https://sourceforge.net/tracker/?func=detail&atid=618683&aid=3296795&group_id=97659
g++ 4.4.3 fails to link against the C++ plplot lib unless the following change is done in <plplot/plstream.h>:

line 112 virtual ~plstream(); -> virtual ~plstream(){};

Issue discussed e.g. here: http://stackoverflow.com/questions/307352/g-undefined-reference-to-typeinfo

HTH,
Sylwester (bug found and solved by stub_dad @ sf.net)

Discussion

  • Andrew Ross

    Andrew Ross - 2011-05-04

    I'm afraid I don't see how this is an error? For me compiling the plplot library (latest svn) works fine on gcc 4.4.4.
    ~plstream has to be declared somewhere, but it is already declared in plstream.cc. Your "fix" causes compilation of plstream.cc to fail for me because ~plstream is being redefined. Can you confirm this? I suspect the gdl error is due to the way the plplot C++ code is being compiled / linked in. From the gdl bug report I can't see immediately why this is the case. Perhaps you can supply more details?

    Andrew

     
  • Sylwester Arabas

    • status: open --> pending
     
  • Sylwester Arabas

    The problem seems not reproducible, and the proposed solution seems not valid.
    Setting to "pending".
    Sylwester

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.