Stoopid internet keeps cutting out...
There is a design flaw in your program if you are expecting SFML to fail.
If SFML cannot be loaded and initialized, your application should fail to start with the normal system dialog (Windows/Mac) or stderr complaint (nix).
Otherwise, the only time the user should see anything is if you cannot load resources or some other critical error happens -- and you still have full use of SFML's capabilities.
I usually keep an error "screen" for such things, so that if anything fatal happens the user will get a simple error message and an apology, complete with a small error code that I can use to track down the problem in the source.
If you plan to handle the traffic, you can even add a button so the user can automatically email yourself with more specific error information.
Do you think I could just use QMessageBox without having to link the entire Qt library? |
Qt is already very smart about what it links in. But I doubt you would just be able to link in QMessageBox without a significant penalty.
If you really want to do it this way, it really isn't hard to make a simple window in X11. It'd take you all of maybe ten lines of code. Same thing in Windows. You just need to adjust your build process to link in the proper compilation unit depending on your platform.
Good luck!