TagLib and Windows
Martin Schlodinski
martinschlodinski at freenet.de
Thu Dec 23 00:12:24 CET 2010
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
More information about the taglib-devel
mailing list