johnmauer
13th February 2010, 22:35
I am using a shared library and load it using QLibrary. That requires that the functions be exported with extern "C". However, the function
extern "C" QString objectName(long type);
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.
extern "C" QString objectName(long type);
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.