[vorbis-dev] Building vorbis - please help

David A. Gatwood dgatwood at gatwood.net
Mon Jan 29 22:11:52 PST 2001



On Mon, 29 Jan 2001, David K. Gasaway wrote:

> >   Most of the rest (the actual errors) are because you're compiling C
> > with a C++ compiler. C is NOT a subset of C++, unlike what some people
> > seem to think. Don't expect that to work, and don't expect us to work
> > around it. Set your compiler to compile as C (if it can't, then your
> > compiler is for a language other than what vorbis is written in -
> > we're not going to change it to that, just like we wouldn't make
> > changes for someone who wanted to compile vorbis with visual basic).
> 
> Ah, the type errors.  Yes, it slipped my mind that oggenc was 
> changed to a C++ file - I will fix this when I make better project 
> files.  I take it back, an honest (and quite embarrassing) mistake.

Most C++ compilers treat those "errors" as warnings.  They really should
be....  There's probably a -permissive flag that you can pass to your
compiler or similar to change them to wranings. I recall current g++ doing
the same.  That having been said, it wouldn't be a bad practice to cast
all type conversions.  It would make c++ portability a virtual non-issue.

> Sigh...no advice for getopt yet.  Thank you, though.  Anyone else?
> 
> I really hope I can get this to work.  If I'm successful, then vorbis 
> should be buildable with Borland's free compiler; when I started on 
> Saturday, this made the project *seem* worthwhile.

getopt?  If you don't have a getopt library, you should probably download
the gnu one and try to build it.  Might not work, but it's worth a shot.
That's a lot of code to try to duplicate yourself.

Later,
David

---------------------------------------------------------------------
                    Check out my weekly web comic:
                     http://www.techmagazine.org

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list