Find out What Version of casacore is Used in a CASA Release

To be really sure, I think you need to compile and run this short program:

// getvers.cxx
#define _GLIBCXX_USE_CXX11_ABI 0
#include <iostream>
#include <string>

namespace casa {
  const std::string getVersion();
  const std::string getVersionCASA();
}

int main(int argc, char **argv)
{
  std::cout << casa::getVersion() << std::endl;
  std::cout << casa::getVersionCASA() << std::endl;
  return 0;
}

Compile with:

g++ -o getvers getvers.cxx -lcasa_casa -L$CASALIBDIR -Wl,-rpath,$CASALIBDIR

May need to symlink libcasa_casa.so.X.Y.Z to just libcasa_casa.so in $CASALIBDIR.

For CASA 4.7.1, I get 2.1.0 as the value of getVersionCASA(), which is a reasonable casacore version number.

Questions or comments? For better or worse this website isn’t interactive, so send me an email or, uh, Toot me.

To get notified of new posts, try subscribing to my lightweight newsletter or my RSS/Atom feed. No thirsty influencering — you get alerts about what I’m writing; I get warm fuzzies from knowing that someone’s reading!

See a list of all how-to guides.

On GitHub you can propose a revision to this guide or view its revision history.