I thought so, here's my "Additional Include Directories" line from my projects properties:<br><br>c:\projects\taglib-1.6.3;C:\projects\taglib-1.6.3\taglib;C:\projects\taglib-1.6.3\taglib\toolkit;C:\projects\taglib-1.6.3\taglib\mpeg\id3v2\frames;C:\projects\taglib-1.6.3\taglib\mpeg\id3v2;%(AdditionalIncludeDirectories)<br>
<br>Which I think had all the bases covered. I'm trying to build the tagreader.cpp example from the examples directory, and the only line I've added to the cpp file is<br><br>#define TAGLIB_STATIC.<br><br>When I was building with dynamic linking and tag.dll I could leave the above line off and it worked, but do I need more #includes in the file because of trying to link static?<br>
<br>Again, sorry for such a newbie question. I have a feeling I'm banging up against my C++ limitations rather than Taglibs :)<br><br>Thanks again!<br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 3:41 PM, Brett Hoyle <span dir="ltr"><<a href="mailto:kickbits@gmail.com">kickbits@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-AU"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Are you including all taglibs header files in your project?</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Jeremy Gregorio [mailto:<a href="mailto:jeremy.firefox.addon@gmail.com" target="_blank">jeremy.firefox.addon@gmail.com</a>] <br>
<b>Sent:</b> Friday, 4 February 2011 4:44 AM<br><b>To:</b> <a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br><b>Subject:</b> Re: Newbie question, can I build static with VC++ Express Edition</span></p>
<div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">Hi,<br> Thank you for the reply :). I changed my taglib_export to this:<br><br>/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
#ifndef TAGLIB_EXPORT<br>#define TAGLIB_EXPORT<br>#endif<br><br>#ifndef TAGLIB_EXPORT_H<br>#define TAGLIB_EXPORT_H<br><br>/*<br>#if !defined(TAGLIB_STATIC) && (defined(_WIN32) || defined(_WIN64))<br>#ifdef MAKE_TAGLIB_LIB<br>
#define TAGLIB_EXPORT __declspec(dllexport)<br>#else<br>#define TAGLIB_EXPORT __declspec(dllimport)<br>#endif<br>#elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1)<br>#define TAGLIB_EXPORT __attribute__ ((visibility("default")))<br>
#else<br>#define TAGLIB_EXPORT<br>#endif<br>*/<br>#ifndef TAGLIB_NO_CONFIG<br>#include "taglib_config.h"<br>#endif<br><br>#endif<br>////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>but I still get the linker errors :(. I wonder if I'm still building Taglib wrong? I should have mentioned, I used Visual C++ 2005 to build tag lib, but I used Visual C++ 2010 to build the test application. It feels like I'm doing something dumb because of my inexperience though...<br>
<br>Thanks again!<br><br><br></p><div><p class="MsoNormal">On Thu, Feb 3, 2011 at 8:48 AM, Николай Шафоростов <<a href="mailto:shafff@ukr.net" target="_blank">shafff@ukr.net</a>> wrote:</p><p class="MsoNormal">a hacky solution is to use<br>
#define TAGLIB_EXPORT<br>instead of<br>#define TAGLIB_EXPORT <SOMETHING><br><br>in taglib_export.h<br><br>right now it is defined as "__declspec(dllimport)" for your project<br>_______________________________________________<br>
taglib-devel mailing list<br><a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a></p>
</div><p class="MsoNormal"> </p></div></div></div></div><br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br>