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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:42:46+00:00 2026-05-31T16:42:46+00:00

My OS is Windows 7 Ultimate x64. I’m using Qt 4.8 to write a

  • 0

My OS is Windows 7 Ultimate x64. I’m using Qt 4.8 to write a program that will use id3lib. I’ve downloaded the windows binaries. Here is part of the *.pro file that shows how id3lib library is used:

HEADERS  += MainWindow.h \
    id3lib/id3/sized_types.h \
    id3lib/id3/globals.h \
    id3lib/id3/tag.h \
    id3lib/id3/utils.h \
    id3lib/id3/id3lib_frame.h \
    id3lib/id3/field.h \
    id3lib/id3/id3lib_strings.h \
    id3lib/id3/id3lib_streams.h

win32: LIBS += -L$$PWD/id3lib/ -lid3lib

INCLUDEPATH += $$PWD/id3lib
DEPENDPATH += $$PWD/id3lib

As you can guess, the library files (id3lib.dll and id3lib.lib) are in id3lib directory and all required headers are in id3lib/id3 directory.

In the globals.h, I defined the follwing:

#define ID3LIB_LINKOPTION LINKOPTION_CREATE_DYNAMIC

And modified the following section in the same file:

#    if (ID3LIB_LINKOPTION == LINKOPTION_CREATE_DYNAMIC)
       //used for creating a dynamic dll
#      define ID3_C_EXPORT extern _declspec(dllexport)
#      define ID3_CPP_EXPORT __declspec(dllexport)
#      define CCONV __stdcall // Added for VB & Delphi Compatibility - By FrogPrince Advised By Lothar
#    endif

as follows:

#    if (ID3LIB_LINKOPTION == LINKOPTION_CREATE_DYNAMIC)
       //used for creating a dynamic dll
#      define ID3_C_EXPORT Q_DECL_IMPORT
#      define ID3_CPP_EXPORT Q_DECL_IMPORT
#      define CCONV __stdcall // Added for VB & Delphi Compatibility - By FrogPrince Advised By Lothar
#    endif

so that it works with Qt.

Next, I’ve included id3/tag.h and written the following code:

ID3_Tag tag("test.wma");
qDebug() << tag.size();

After compilation, I got the following errors:

undefined reference to `_imp___ZN7ID3_TagC1EPKc'
undefined reference to `_imp___ZNK7ID3_Tag4SizeEv'
undefined reference to `_imp___ZN7ID3_TagD1Ev'
undefined reference to `_imp___ZN7ID3_TagD1Ev'
(several few, same format: `_imp___xxxxx_Tagxxxx')

I know what causes undefined reference, but in my case, why the linker couldn’t find the implementation? Is it now there in the id3lib.dll? Does anyone know if there is any workaround?

  • 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-31T16:42:47+00:00Added an answer on May 31, 2026 at 4:42 pm

    The problem lies not in tool chains, but ABI.

    It does exist standard plain C ABI, so you can link against both lib and a by MinGw, if they contain only plain C symbols.

    But it is not true in you case (since such define as ID3_CPP_EXPORT exist).

    You should try to make library by youserlf.
    To begin with, install msys, open msys shell, go to project folder and try

    ./configure && make
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Windows 7 Ultimate x64. After reinstalling OS copied back whole MySQL data
I've just installed Windows 7 x64 Ultimate on my desktop PC. I installed IIS,
I'm using Windows Vista Ultimate and today I've installed the Visual Studio 2008 SP1,
I'm running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently
I'm on Windows 7 Ultimate x64 IIS 7.5 I have deployed the services to
I have VS2010 Premium RTM version on Windows 7 Ultimate x64 . In the
While testing out a UDP multicast server that I've written on Windows 7 Ultimate
Clean Windows 7 x64 system. Try to install VS 2010 Ultimate and the installation
I recently installed SQL Server 2008 Express on my Windows 7 Ultimate x64 home
I'm using Windows 7 Ultimate, trying to manually copy a file into the GAC.

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.