<p dir="ltr">It should be something like<br>
LIBS += -L<path to taglib.a> -ltaglib.a<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">вт, 25 июл. 2017 г., 23:06 Chaos Total <<a href="mailto:ChaosTotal@outlook.fr">ChaosTotal@outlook.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_7140934241129582961divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hello,</p>
<p><br>
</p>
<p>I am new to Tagscan. I dowloaded the library files (version 1.11.1) and, not being a user of CMake, I tried to compile them directly by adding to a Qt console project, whose "main" function just called a simple test function like</p>
<p><br>
</p>
<p>void test()</p>
<p>{</p>
<p></p>
<div>    TagLib::FileRef f("../test/Albeniz.mp3");<br>
    TagLib::String title = f.tag()->title();<br>
    wstring tit=title.toWString();</div>
<pre style="margin-top:0px;margin-bottom:0px"><font color="#c0c0c0">  </font>wcout<<tit;</pre>
<pre style="margin-top:0px;margin-bottom:0px">}</pre>
<br>
<p></p>
<p>and it worked!! (with a '#define <span>TAGLIB_STATIC</span>').</p>
<p><br>
</p>
<p>   Than, I tried to create a static Taglib library: I created a new Qt "static library" project, added the .cpp and .h files to it as above, and built the library, generating a 'taglib.a' file. In another Qt console project I just call the same test() function
 and tried to link it to my static library using a statement 'LIBS += taglib.a' in the .pro file. It finds the library file, but does not link to any function, I get a long list of errors of the form</p>
<p><br>
</p>
<p><span>-1: error: undefined reference to `_imp___ZN6TagLib8FileNameC1EPKc'</span><br>
</p>
<p><span><br>
</span></p>
<p><span>etc. For some reason, the functions seem not available on the library. I suspect my library exports not to be correctly configured, but don't know what to do.</span></p>
<p><span><br>
</span></p>
<p><span>     Suggestions are welcome.</span></p>
<p><span><br>
</span></p>
<p><span>     Best,</span></p>
<p><span><br>
</span></p>
<p><span>              chaos = jc</span></p>
<p><br>
</p>
</div>
</div>

</blockquote></div>