Changeset 895


Ignore:
Timestamp:
Nov 26, 2009, 7:34:45 AM (14 years ago)
Author:
Peter Johansson
Message:

adding plplot version info in --version output. I can only find version info as function, i.e., the version is availabl at runtime no compile time. fixes #407

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OptionVersion.cc

    r795 r895  
    3333
    3434#include <apr_version.h>
     35
     36#include <plplot/plstream.h>
    3537
    3638#include <sstream>
     
    7880      cs << apr_version_string();
    7981      cs << "\n";
     82      cs << "using libplplot ";
     83      plstream pls;
     84      char* plplot_version;
     85      pls.gver(plplot_version);
     86      cs << plplot_version << "\n";
    8087    }
    8188    exit(0);
Note: See TracChangeset for help on using the changeset viewer.