Important: Please read the Qt Code of Conduct -

Explicitly linking custom object in mingw

  • hey guys,
    Happy new year (with delay)!

    i know here's not the place for such questions, just wanted to understand if someone has experienced these kinds of worries!
    in order to export a symbol in c++ and loading dynamically (maybe QLibrary) MSVC doesn't support user defined return types. for example
    extern "C" lib QStringList anything();
    not a valid export in MSVC while it's done pretty with Mingw as i've tested successfully on my projects.
    now I Doubt, if there's a registered standard by Microsoft which prevents such kinds of linking, could it be a leading to problems while persist on doing a "non-standard" solution from Microsoft eyes?
    i've hadn't problem until now, just worry to have it tomorrow!

Log in to reply