TagLib and Windows

Joel Verhagen joel.verhagen at gmail.com
Fri Dec 24 02:00:48 CET 2010


Martin,

I have had the same issue. If you are using TagLib in MSVC++, then you
will need to build it in MSVC++. That blog post I wrote is about
building it for MinGW (the default compiler for QtCreator). I recently
tried to build TagLib for Windows in Visual Studio 2010 (MSVC++) and I
couldn't get it working in any of my projects (the build succeeded
though).

This is my StackOverflow question related to the matter:
http://stackoverflow.com/questions/4413949/using-taglib-in-visual-studio-2010

Have you had any luck since you've sent this? It seems this list is
not frequented by Windows users very often.

Joel Verhagen


On Wed, Dec 22, 2010 at 6:12 PM, Martin Schlodinski
<martinschlodinski at freenet.de> wrote:
>
> Sorry, I mean this tutorial:
> http://www.joelverhagen.com/blog/2010/11/how-to-compile-taglib-on-windows/
>
>
>
> > Hi,
> >
> > I've been struggling with TagLib and I couldn't get it working on
> > Windows. With the use of this tutorial I was able to compile TagLib to
> > a dll file - but how can I use it now? The command
> >
> > HINSTANCE m_hInst;
> > m_hInst = ::LoadLibrary((LPCWSTR)"taglib.dll");
> >
> > works but when I try to apply a method like
> >
> > TagLib::FileRef f(file);
> >
> > I get tons of errors...
> >
> > 1> library "C: \ Users \ martin \ Desktop \ gen_WinampControlServer \
> > Release \ gen_WinampControlServer.lib" and object "C: \ Users \ martin
> > \ Desktop \ gen_WinampControlServer \ Release \
> > gen_WinampControlServer.exp be created.
> > 1> WinampControlServerSocket.obj: error LNK2028: unresolved token
> > (0A00017F) "public: __thiscall TagLib:: FileName:: filename (char
> > const *)" "(0FileName @ taglib @ @ $ $ FQAE @ PBD @ Z?) referenced in
> > function "public: send cover (struct HWND__ *): void __thiscall winamp
> > control server socket:" referred "(send cover @ winamp control server
> > socket @ @ $ $ FQAEXPAUHWND__ @ @ @ Z?).
> > 1> WinampControlServerSocket.obj: error LNK2028: unresolved token
> > (0A000182) "public: __thiscall TagLib:: file name:: ~ filename
> > (void)", "on the (1FileName @ taglib @ @ $ $ FQAE @ XZ?) is
> > (<MarshalDestroy> @ filename @ taglib @ @ @ @ Z $ $ FSMXPAV12?)
> > referenced in function "public: static void __clrcall TagLib:: file
> > name::: <MarshalDestroy> (filename * class TagLib:)".
> > 1> WinampControlServerSocket.obj: error LNK2028: unresolved token
> > (0A000183) "public: __thiscall TagLib:: filename: file name (class
> > TagLib:: FileName const &)" (0FileName @ taglib @ @ $ $ FQAE @ ABV01?
> > @ @ Z) referenced in function "public: static void __clrcall TagLib::
> > file name:: <MarshalCopy> (class TagLib:: file name *, class TagLib::
> > file name *)" (<MarshalCopy> @ filename @? TagLib @ @ $ $ FSMXPAV12 @
> > 0 @ Z) "is referred.
> > 1> WinampControlServerSocket.obj: error LNK2028: unresolved token
> > (0A00038C) "public: virtual __thiscall TagLib:: fileRef:: ~ fileRef
> > (void)", "on (1FileRef @ taglib @ @ $ $ FUAE @ XZ?) in function
> > "public: send cover (struct HWND__ *): void __thiscall winamp control
> > server socket:" referred "(send cover @ winamp control server socket @
> > @ $ $ FQAEXPAUHWND__ @ @ @ Z?).
> > 1> WinampControlServerSocket.obj: error LNK2028: unresolved token
> > (0A00038D) "public: __thiscall TagLib:: fileRef:: fileRef (class
> > TagLib:: filename, bool, enum TagLib:: AudioProperties:: read style)"
> > (0FileRef? @ taglib @ @ $ $ FQAE @ VFileName @ 1 @ _NW4ReadStyle @
> > AudioProperties @ 1 @ @ Z) referenced in function "public: void
> > __thiscall winamp control server socket:: send cover (struct HWND__ *)
> > (send cover @ winamp control server socket @ @? $ $ FQAEXPAUHWND__ @ @
> > @ Z) referenced is.
> > 1> WinampControlServerSocket.obj: error LNK2019: unresolved external
> > symbol "public: virtual __thiscall TagLib:: fileRef:: ~ fileRef
> > (void)" in function (1FileRef @ taglib @ @ $ $ FUAE @ XZ?) "" public:
> > void __thiscall winamp control server socket:: send cover (struct
> > HWND__ *) "(? send cover @ winamp control server socket @ @ $ $
> > FQAEXPAUHWND__ @ @ @ Z)".
> > 1> WinampControlServerSocket.obj: error LNK2019: unresolved external
> > symbol "public: __thiscall TagLib:: fileRef:: fileRef (class TagLib::
> > filename, bool, enum TagLib:: AudioProperties:: read style)"
> > (0FileRef? @ taglib @ @ $ $ FQAE @ VFileName @ 1 @ _NW4ReadStyle @
> > AudioProperties @ 1 @ @ Z) referenced in function "public: void
> > __thiscall winamp control server socket:: send cover (struct HWND__ *)
> > (send cover @ winamp control server socket @ @ $ $ FQAEXPAUHWND__? @ @
> > @ Z) ".
> > 1> WinampControlServerSocket.obj: error LNK2019: unresolved external
> > symbol "public: __thiscall TagLib:: FileName:: filename (char const
> > *)" "(0FileName @ taglib @ @ $ $ FQAE @ PBD @ Z?) in function "public:
> > void __thiscall winamp control server socket:: send cover (struct
> > HWND__ *)" "(send cover @ winamp control server socket @ @ $ $
> > FQAEXPAUHWND__ @ @ @ Z?).
> > 1> WinampControlServerSocket.obj: error LNK2019: unresolved external
> > symbol "public: __thiscall TagLib:: filename: file name (class
> > TagLib:: FileName const &)" (0FileName @ taglib @ @ $ $ FQAE @ ABV01?
> > @ @ Z) referenced in function "public: static void __clrcall TagLib::
> > file name:: <MarshalCopy> (class TagLib:: file name *, class TagLib::
> > file name *)" (<MarshalCopy> @ filename @ @ @ taglib? $ $ FSMXPAV12 @
> > 0 @ Z) ".
> > 1> WinampControlServerSocket.obj: error LNK2019: unresolved external
> > symbol "public: __thiscall TagLib:: file name:: ~ filename (void)" in
> > function "(1FileName @ taglib @ @ $ $ FQAE @ XZ?) public: static void
> > __clrcall TagLib:: file name:: <MarshalDestroy> (class TagLib:: file
> > name *) "(? <MarshalDestroy> @ filename @ @ @ taglib FSMXPAV12 $ $ @ @
> > Z)".
> > 1> C: \ Users \ martin \ Desktop \ gen_WinampControlServer \ Release \
> > gen_WinampControlServer.dll: fatal error LNK1120: 10 unresolved
> > externals.
> >
> > Maybe you can give me a hint :)
> >
> > Regards
> > Martin
>
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel


More information about the taglib-devel mailing list