Yalir / sfeMovie

sfeMovie is a simple C++ library that lets you play movies in SFML based applications. It relies on FFmpeg to read medias and remains consistent with SFML's naming conventions.
http://sfemovie.yalir.org/
GNU Lesser General Public License v2.1
114 stars 37 forks source link

VS2013) locally defined symbol imported warnings #83

Closed hsdk123 closed 9 years ago

hsdk123 commented 9 years ago

I realise that when I build my project with sfeMovie, I get the following warnings:

warning LNK4049: locally defined symbol ??1Movie@sfe@@UAE@XZ (public: virtual __thiscall sfe::Movie::~Movie(void)) imported

I don't think I should just be disabling the warning for this one - is there anything sfeMovie could do to clear the warnings?

feliwir commented 9 years ago

Can you tell me which version of msvc you are using so i can reproduce this error?

hsdk123 commented 9 years ago

@feliwir Thanks for the reply - I'm using Visual Studio 2013

feliwir commented 9 years ago

@hsdk123 i use visual studio 2013 aswell, but i don't get this error (when building sfeMovieSample). My guess is that you are trying to use the static lib but you forget about the SFEMOVIE_STATIC macro. Since you are using visual studio you could check how SFE_API is defined in Visibility.hpp?

hsdk123 commented 9 years ago

@feliwir Thanks, that was exactly it :+1: