I am using a shared library and load it using QLibrary. That requires that the functions be exported with extern "C". However, the function
Qt Code:
  1. extern "C" QString objectName(long type);
To copy to clipboard, switch view to plain text mode 
gets a compiler warning
'objectName' has C-linkage specified, but returns UDT 'QString' which is incompatible with C
Is there a way to export a QString return from a shared library? I would prefer not defeating a really good class like QString.