[FFmpeg-user] multiple definition of `_SDL_GetError'
JonY
jon_y at users.sourceforge.net
Sun Sep 11 08:28:26 CEST 2011
On 9/11/2011 13:00, Kyle wrote:
> After working through this bug:
> https://ffmpeg.org/trac/ffmpeg/ticket/282 I ran into this:
> /home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_error.o):SDL_error.c:(.text+0x477):
> multiple definition of `_SDL_GetError'
> libavdevice/libavdevice.dll.a(d000060.o):(.text+0x0): first defined here
> /home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x2c1):
> multiple definition of `_SDL_CreateThread'
> libavdevice/libavdevice.dll.a(d000030.o):(.text+0x0): first defined here
> /home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x411):
> multiple definition of `_SDL_WaitThread'
> libavdevice/libavdevice.dll.a(d000168.o):(.text+0x0): first defined here
Hi,
This would be a symptom of not using dllexport properly (eg using
-export-all-symbols).
It is also possible that dllexport directives leaked into the SDL static
lib, and finally into libavdevice, caused by sloppy use of the dllexport
attribute and the use of static libs to build DLLs.
Anyway, libavdevice shouldn't be exporting SDL symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20110911/7c50b6a2/attachment.asc>
More information about the ffmpeg-user
mailing list