Newbie question, can I build static with VC++ Express Edition

Jeremy Gregorio jeremy.firefox.addon at gmail.com
Sat Feb 5 23:51:09 CET 2011


Hi,

I just wanted to let everyone know I worked around my static compiling
issues :). My Firefox plug-in, youtubeMP3Podcaster, will TagLib to tag the
MP3s. I was able to get the tag.dll to load after I switched to using SVN
sources, which will build under Visual Studio Express Edition 2010. From
there I can call the library as needed.

P.S.

I'm still working out getting unicode to work, so I don't yet have tagging
support on the web site, but if anyone wants to check it out my plugin's
here:

https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/

Thanks again for everyone's help :)!

On Thu, Feb 3, 2011 at 9:18 PM, Jeremy Gregorio <
jeremy.firefox.addon at gmail.com> wrote:

> I thought so, here's my "Additional Include Directories" line from my
> projects properties:
>
>
> 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)
>
> 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
>
> #define TAGLIB_STATIC.
>
> 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?
>
> Again, sorry for such a newbie question. I have a feeling I'm banging up
> against my C++ limitations rather than Taglibs :)
>
> Thanks again!
>
>
> On Thu, Feb 3, 2011 at 3:41 PM, Brett Hoyle <kickbits at gmail.com> wrote:
>
>> Are you including all taglibs header files in your project?
>>
>>
>>
>> *From:* Jeremy Gregorio [mailto:jeremy.firefox.addon at gmail.com]
>> *Sent:* Friday, 4 February 2011 4:44 AM
>> *To:* taglib-devel at kde.org
>> *Subject:* Re: Newbie question, can I build static with VC++ Express
>> Edition
>>
>>
>>
>> Hi,
>>      Thank you for the reply :). I changed my taglib_export to this:
>>
>>
>> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>> #ifndef TAGLIB_EXPORT
>> #define TAGLIB_EXPORT
>> #endif
>>
>> #ifndef TAGLIB_EXPORT_H
>> #define TAGLIB_EXPORT_H
>>
>> /*
>> #if !defined(TAGLIB_STATIC) && (defined(_WIN32) || defined(_WIN64))
>> #ifdef MAKE_TAGLIB_LIB
>> #define TAGLIB_EXPORT __declspec(dllexport)
>> #else
>> #define TAGLIB_EXPORT __declspec(dllimport)
>> #endif
>> #elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 &&
>> __GNUC_MINOR__ >= 1)
>> #define TAGLIB_EXPORT __attribute__ ((visibility("default")))
>> #else
>> #define TAGLIB_EXPORT
>> #endif
>> */
>> #ifndef TAGLIB_NO_CONFIG
>> #include "taglib_config.h"
>> #endif
>>
>> #endif
>>
>> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>
>> 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...
>>
>> Thanks again!
>>
>>
>> On Thu, Feb 3, 2011 at 8:48 AM, Николай Шафоростов <shafff at ukr.net>
>> wrote:
>>
>> a hacky solution is to use
>> #define TAGLIB_EXPORT
>> instead of
>> #define TAGLIB_EXPORT <SOMETHING>
>>
>> in taglib_export.h
>>
>> right now it is defined as "__declspec(dllimport)" for your project
>> _______________________________________________
>> taglib-devel mailing list
>> taglib-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>
>>
>>
>> _______________________________________________
>> taglib-devel mailing list
>> taglib-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110205/4728837a/attachment.htm 


More information about the taglib-devel mailing list