On 15/05/2020 11.17, Andy wrote:
I'm running into a link problem on Windows. I only have Windows on CI, so
debugging this is... challenging.

- cmake 3.10+

- AUTOMOC is ON for the project in the top level cmake file

- Dynamic Library "A":
   class LIB_IMPORT_EXPORT Foo
   {
       Q_OBJECT
       ...

    where LIB_IMPORT_EXPORT uses Q_DECL_EXPORT/Q_DECL_IMPORT properly
depending on who's building.

This isn't necessarily your problem, but if you're using CMake, I would recommend using generate_export_header to define your ABI decoration symbols rather than rolling your own using Q_DECL_EXPORT/Q_DECL_IMPORT.

--
Matthew
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to