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

Jeremy Gregorio jeremy.firefox.addon at gmail.com
Thu Feb 3 19:14:19 CET 2011


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110203/d156dfdc/attachment.htm 


More information about the taglib-devel mailing list