[vorbis-dev] Building vorbis - please help

Michael Smith msmith at labyrinth.net.au
Mon Jan 29 23:25:14 PST 2001



At 10:42 PM 1/29/01 -0800, you wrote:
>> That came under "don't compile as C++". Those look like the errors
>> you'd get from compiling c as C++ (also note the "C++ error" in the
>> getopt messages you posted). Note that this stuff is a raw unchanged
>> copy of GNU getopt. It's K&R C, so you do see things with prototyped
>> parameters, etc. I needed to define something (I forget what, it may
>> have been __STDC__) to get it to work in MSVC, but no source changes
>> at all were needed. 
>
>I was working on just this when your message came in.  Here's 
>what I haven't figured out: no complaints with getopt.c, just with 
>getopt1.c.  Probaby was __STDC__, but Borland's headers don't 
>declare strdup when __STDC__ is defined.

Hm. That sucks. I'd prefer not to have to modify the getopt sources at all,
but if you can't make it work with any combination of defines, it might be
neccesary.

Michael

--- >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