I had the same problem with a graph. I solved using TApplication. That worked but introduced a new issue for me because I don’t know how I can return to the main after calling TApplication::Run().
Check this post [url]Libraries Compilation Error out especially the final part, all I am saying is explained
Cheers,
G.