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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:17:30+00:00 2026-05-20T17:17:30+00:00

EDIT: Yes, I have looked at this post . Unfortunately, it looks like the

  • 0

EDIT: Yes, I have looked at this post. Unfortunately, it looks like the user ends up using MingW in the end.


I am on Windows 7, 64-bit. I downloaded the most recent version of the TagLib code from the SVN repository. I am using revision 1202935.

I am trying to use TagLib in Visual Studio 2010. I have gotten TagLib to work with QtCreator/MingW, but I want to start learning the Windows API so I am starting from scratch in Visual Studio 2010 (C++ of course).

In VS2010, I have build zlib (both statically and dynamically) and TagLib with and without zlib (both statically and dynamically). In other words, I have tried everything I can think of to get this to work.

My ideal situation is that I use CMake to generate the VS2010 project files (there is an option for VS2010 64-bit. I do not choose this option) for TagLib. I would like them to be static libraries, so I enable ENABLE_STATIC, and I enable WITH_ASF, and WITH_MP4. I also direct TagLib to zlib using ZLIB_INCLUDE_DIR and ZLIB_LIBRARY (I am linking to the zlib.lib file that I previously built using VS2010). Note, I am using the CMake GUI.

I then open up the generated project files in VS2010 and make three changes to the code so that it build in Visual Studio 2010 without error (I put the fixes here for anyone else who had the same problem as I).

apefooter.cpp on line 192:

std::bitset<32> flags(static_cast<unsigned long long>(data.mid(20, 4).toUInt(false)));

mpcproperties.cpp on line 116:

std::bitset<32> flags = static_cast<unsigned long long>(d->data.mid(8, 4).toUInt(false));

mpegheader.cpp on line 171:

std::bitset<32> flags(static_cast<unsigned long long>(data.toUInt()));

I then make then comment out lines 436 and 437 in mpegfile.cpp, because I think it’s a bug.

// ID3v2Tag(true);
// ID3v1Tag(true);

I then build the project in Release mode. It builds just fine. No errors (although there are a bunch of warnings).

So I have generated tag.lib. I then created a test VS2010 project/solution to use TagLib.

This is the only line I use TagLib. Just a test, mind you.

TagLib::MPEG::File a("tests/other/blank.mp3");
  • I added TAGLIB_STATIC to the preprocessor options (Property Pages > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions) for all configurations (both Release and Debug builds)
  • I added every single darn header directory to Property Pages > Configuration Properties > C/C++ > General > Additional Include Directories
  • And finally I added zlib.lib and tag.lib to the additional dependencies (Property Pages > Configuration Properties > Linker > Input > Additional Dependencies) IN THAT ORDER

“Whew! What a hassle! Now let’s see if it works?”

1>vs_taglib_test.obj : error LNK2028: unresolved token (0A00001A) "public: virtual __clrcall TagLib::MPEG::File::~File(void)" (??1File@MPEG@TagLib@@$$FUAM@XZ) referenced in function "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)
1>vs_taglib_test.obj : error LNK2028: unresolved token (0A00001B) "public: __clrcall TagLib::MPEG::File::File(class TagLib::FileName,bool,enum TagLib::AudioProperties::ReadStyle)" (??0File@MPEG@TagLib@@$$FQAM@VFileName@2@_NW4ReadStyle@AudioProperties@2@@Z) referenced in function "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)
1>vs_taglib_test.obj : error LNK2019: unresolved external symbol "public: virtual __clrcall TagLib::MPEG::File::~File(void)" (??1File@MPEG@TagLib@@$$FUAM@XZ) referenced in function "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)
1>vs_taglib_test.obj : error LNK2019: unresolved external symbol "public: __clrcall TagLib::MPEG::File::File(class TagLib::FileName,bool,enum TagLib::AudioProperties::ReadStyle)" (??0File@MPEG@TagLib@@$$FQAM@VFileName@2@_NW4ReadStyle@AudioProperties@2@@Z) referenced in function "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)

Can someone else try out what I’m doing here and point out my mistake? I tried to provide enough information for y’all to see what’s happening.

Thanks for reading!

  • 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-20T17:17:30+00:00Added an answer on May 20, 2026 at 5:17 pm

    I’ve been able to build TagLib 1.7 using Visual Studio 2010.

    My Steps

    • Download zlib sources from
      http://zlib.net/

    • Download zlib bins from
      http://www.winimage.com/zLibDll/index.html

    • Setup VC++ Directories to zlib source
      & bins

    • Download TagLib 1.7 from
      http://developer.kde.org/~wheeler/taglib.html

    • Extract taglib-1.7 directory

    • Use command prompt to run – cmake -G “Visual Studio 10” in taglib-1.7 directory

    • Open & build taglib.sln

    • .dll and lib files go to /taglib-1.7/taglib/Debug & /taglib-1.7/taglib/Release

    Using the CMake gui throws up errors for ZLIB and adding the zlib directories and lib manually will generate a visual studio solution but it would not generate the .dll files (linking errors)

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

Sidebar

Related Questions

I have a function that looks like this: function SomeFunction() { var SomeVar; if
lets say I have a String like this [{ name : Ronald , firstname
I have a C structure like this : typedef struct ip_esp_private { /* keep
I have looked around for a way of implementing this. Here is a pseudocode
[EDIT] Based on feedback yes, VS2010 seems to support SL4 Library TDD despite a
Edit 1: Uninstalled & Reinstalled Edit 2: Same problem. Seriously? Yes. I am having
EDIT 07/14 As Bill Burgess mentionned in a comment of his answer, this question
EDIT: See my answer below--> I am wanting to have a view that when
Edit (updated question) I have a simple C program: // it is not important
EDIT: iam using ajax to load text in my content that is why onload

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.