add: OSG::osgInit(argc,argv);
context: int main (int argc, char **argv){  int retCode = 0;  //char defaultOutImage[] = "out.pnm";  OSG::ImagePtr pImage = OSG::Image::create();  OSG::ImageFileType *fType;    if (argc > 2)    {      fType = OSG::ImageFileHandler::the().getFileType(0,argv[1]);      if (fType) {        // read as image file        fType->read(pImage,argv[1]);      }      else {        // read as mem dump        readMemDump(pImage,argv[1]);      }      fType = OSG::ImageFileHandler::the().getFileType(0,argv[2]);      if (fType) {        // write as image file        fType->write(pImage,argv[2]);      }      else {        // read as mem dump        writeMemDump(pImage,argv[2]);      }    }  else    {      FLOG (("usage: %s inputimage ouputimage\n", argv[0]));      retCode = -1;    }    return retCode;}