I am writing a cross platform shared library (.so in linux and .dll in windows) using C. Currently when there is a error, library functions returns the
On linux, instead of printing the error on standard output (or standard error), you should log the error using rsyslog. Since you are dealing with GUI, maybe you can also pop a message box (not always).
I have no idea about the windows, but I think it has something similar.