Is it possible to build and use the SMPEG library on Windows? I think I
know the answer, because there is no reference to Windows on the Loki
site. If the answer is no, is there another way to program a video
player with SDL on Windows?
thanks
Gib
Is it possible to build and use the SMPEG library on Windows?
Yes, it is.
There should be Visual C++ 5.0 projects in the source archive.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Sam Lantinga wrote:
Is it possible to build and use the SMPEG library on Windows?
Yes, it is.
There should be Visual C++ 5.0 projects in the source archive.
Ah, now I see it. Thanks.
Gib
Sam Lantinga wrote:
Is it possible to build and use the SMPEG library on Windows?
Yes, it is.
There should be Visual C++ 5.0 projects in the source archive.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
This is almost good ;). I built smpeg.dll, but I’m getting errors when
I try to build plaympeg.
Compiling…
plaympeg.c
Linking…
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in
LIBCMT.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in
LIBCMT.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strrchr already defined in
LIBCMT.lib(strrchr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in
LIBCMT.lib(fprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in
LIBCMT.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in
LIBCMT.lib(isctype.obj)
LIBCMT.lib(crt0init.obj) : warning LNK4098: defaultlib “msvcrt.lib”
conflicts with use of other libs; use /NODEFAULTLIB:library
Release/plaympeg.exe : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.
plaympeg.exe - 7 error(s), 1 warning(s)
After adding /nodefaultlib:msvcrt.lib I get
Compiling…
plaympeg.c
Linking…
LINK : warning LNK4049: locally defined symbol “_exit” imported
LINK : warning LNK4049: locally defined symbol “_strncpy” imported
LINK : warning LNK4049: locally defined symbol “_strrchr” imported
LINK : warning LNK4049: locally defined symbol “_fprintf” imported
LINK : warning LNK4049: locally defined symbol “__iob” imported
LINK : warning LNK4049: locally defined symbol “_fclose” imported
LINK : warning LNK4049: locally defined symbol “__pctype” imported
LINK : warning LNK4049: locally defined symbol “__isctype” imported
LINK : warning LNK4049: locally defined symbol “___mb_cur_max” imported
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__remove
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__fgetc
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__fopen
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__setbuf
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__setvbuf
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
__imp__freopen
Release/plaympeg.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
plaympeg.exe - 7 error(s), 9 warning(s)
Do you know what I have to do to the build settings to solve this?
thanks
Gib
This is almost good ;). I built smpeg.dll, but I’m getting errors when
I try to build plaympeg.
Compiling…
plaympeg.c
Linking…
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in
LIBCMT.lib(crt0dat.obj)
Yep, this is in the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=4#43
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Sam Lantinga wrote:
This is almost good ;). I built smpeg.dll, but I’m getting errors when
I try to build plaympeg.
Compiling…
plaympeg.c
Linking…
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in
LIBCMT.lib(crt0dat.obj)
Yep, this is in the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=4#43
I knew that - once. All’s well, thanks again Mr. Sam.
Gib