[vorbis-dev] GCC 2.95.2(Win32/Mingw32) build

Michael Smith msmith at labyrinth.net.au
Thu Apr 13 08:05:28 PDT 2000



>In any case, has anyone managed to build a working copy with either Mingw or 
>Cygwin for 32-bit windows?

Well, crashes are bad, and it would be great to track these down - but you
don't need gcc to compile it under win32. It's very clean, close to ANSI C. 

It is known to compile and work perfectly with MSVC (version 5 definately,
I suspect others have used version 6). I doubt other windows compilers are
going to be much different - 'porting' the code basically consisted of
adding a few missing headers, defining int64_t and similar types, and
defining a few things to work around weirdnesses in MSVC (like _alloca()
instead of alloca())

However, the programs using the library WILL need to be modified to run on
windows platforms (unless you're using cygwin, which makes it look unixy
enough).

Most notably, the encoder and decoder examples use stdin and stdout. You
need to switch these to binary mode before doing anything.

However, none of that should be causing segfaults - it'd be great if you
could jump into the code and try and track down where that's happening. The
idea is that libvorbis should be portable to pretty much any ANSI C
compiler that is available.

Michael

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list