Error on TBufferFile::ReadVersion

Actually, I can’t find the real “main” routine of your “OscClass” executable.
Right in its beginning, try to add one line:
TApplication a("a", 0, 0); // just to make sure that the autoloading of ROOT libraries works