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 6325197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:51:00+00:00 2026-05-24T16:51:00+00:00

So have a user interface that I wrote using MinGW QT. In the UI

  • 0

So have a user interface that I wrote using MinGW QT. In the UI I’m trying to reference objects from my Visual Studio project. Some objects I can reference and use just fine, but the one I’m having problems with uses a 3rd party COM object.

These are the errors I’m getting:

undefined reference to 'CoInitialize@4'
undefined reference to 'CoCreateInstance@20'

I’ve read that you can’t easily mix MinGW and VS libraries. The catch is, Some of the GUI libraries I’m using only compile with MinGW, so I can’t just change QT to use the Microsoft compiler.

Is there any way I can get it to recognize these functions, or am I going to end up having to rewrite everything?

I’ve tried including the 3rd party dll in the .pro file, but that doesn’t fix anything.

  • 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-05-24T16:51:01+00:00Added an answer on May 24, 2026 at 4:51 pm

    Those are linking errors, you just need to link with whatever lib has the COM functions (ole32 according to a quick google). You can probably call code in a dll compiled with msvc from mingw, as long as it’s C code not C++ though.

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

Sidebar

Related Questions

I have a user interface in .net which needs to receive data from a
I have a custom WinForms control (inherits from control, i.e. without user interface jsut
I have a console project, but now I need to put an user interface
I have a function that presents the user a combo-box. def select_interface(interfaces) list_box :items
Applications which run on mobile devices have special user interface requirements. I think Apple
I have a user that want to be able to select a textbox and
I have a user script that would be much more useful if it could
I have a user control in a repeater that I need to pass data
I'm working on a program that uses HTML/CSS/Javascript/JQuery for its user interface. One of
I have user control named DateTimeUC which has two textboxes on its markup: <asp:TextBox

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.