Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Q_DECL_EXPORT works, but macro not...
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Q_DECL_EXPORT works, but macro not...

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    I have Shared library, which has predefined macro. The strangest thing on that is this:
    @Q_DECL_EXPORT Configurator* getConfigurator(void); // works
    SHARED_LIBRARY Configurator* getConfigurator(void); // no that doesn't work...@

    Question is: Why it doesn't work?

    EDIT: I have solved it. I didn't have included Configurator_global.h file (strange...)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved