2011/10/3 Simson Garfinkel <simsong(a)acm.org>:
>
> Well, you could Use also on command line simply -Wc,lexiv2.dll option.
> By this you are choosing always the shared variant (which is used in
> scan_exif.cpp source via dllimport). By this the link-failures should
> be gone.
> Not sure about it, but for testing you might want to remove the
> libexiv2.la file.
>
> Another way to solve this, so that you are able to use static version
> here, is to make sure that in scan_exif.cpp for imported libexiv2 API
> no dllimport attribute gets specified.
Thanks, Kai. I did delete the libexiv2.la file and am seeing the same behavior.
Can you tell me how to specify the "no dllimport attribute?"
Thanks again.
Simson
Well, the dllimport attribute is specified in source via
'__declspec(dllimport)' or '__attribute__((dllimport))'. Most likely
this is done within API header. So you need to take a look why and
where this attribute is specified. I assume it is a header configure
issue.
Regards
Kai