Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7989285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:42:46+00:00 2026-06-04T12:42:46+00:00

I have a problem with windows dynamic libraries. I’ve written a shared widget library

  • 0

I have a problem with windows dynamic libraries. I’ve written a shared widget library in Linux using Qt/C++. Everything is ok and I can link every application against my library. But in Windows same code compiles, but any application can’t use it. I’m getting a lot of linker errors of type undefined reference to ... which are all implemented in library.

I found that in Windows, symbol table of code is not exported to binary by default. I have to specify which function I want to be visible in final dll. But I can’t manage to find a way to doing that.

Following this instructions, I add Q_DECL_EXPORT to all class declarations. but it doesn’t work for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:42:48+00:00Added an answer on June 4, 2026 at 12:42 pm

    You should add MYSHAREDLIB_EXPORT to your class declarations, not Q_DECL_EXPORT. Also from the link your provided, which you define accordingly.

    If you add Q_DECL_EXPORT, you tell the compiler to generate code for that class in every module that includes the header, not to expect the class to be exported in another library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with chart export. I´m using MS Chart (System.Windows.Controls.DataVisualization.Toolkit) I can
I have got a problem. I have windows forms application with dynamic generated layout,
I have a problem which appears when using Ubuntu Linux/Gnome, but seemingly not on
I have a problem after i setup windows 7 all old projects in c#
i have a problem with the stopping of a windows phone xna game. i
I have this problem where I open Visual Studio and the internal windows are
I have a problem at some customer pc's (new Dell PCs) windows XP Professional
I have the problem I just installed the new Monodevelop 2.2.2 on Windows but
I have the following problem: I implemented a managed mobile application for Windows Mobile
I have a windows-form which runs without any problem and displayed well. But if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.