can't get libvorbis examples to compile
Hi, I am currently working on a school project of writing an implementation of Vorbis Decoder. In order to verify my work I am attempting to get the decoder_example.c or the vorbisfile_example.c to build, so that I make sure I am decoding the stream correctly at certain intervals.
I have not been able to get either of these to build in multiple different environments.
1st: Dev C++ on Win XP
I get the paths set up correctly but when I try to build I get the following errors.
[Warning] cannot find entry symbol _mainCRTStartup; defaulting to 00401000
C:\DOCUME~1\Owner\LOCALS~1\Temp\ccusaaaa.o(.text+0x2a) In function `main':
[Linker error] undefined reference to `_alloca'
[Linker error] undefined reference to `__main'
There are a lot more linker errors like the two listed.
It actually came with Vorbis-1.1.1, but that shouldn't matter. When I attempt to build with
gcc -c vorbisfile_example.c
I get multiple error messages like the one below.
5 [main] ? 2852 init_cheap: Couldn't reserve 3600336 bytes of space for cygwin's heap, Win32 error 487
C:\Cygwin\lib\gcc\i686-pc-cygwin\3.4.4\collect2.exe (2852): *** AllocationBase 0x0, BaseAddress 0x61820000, RegionSize 0x360000, State 0x10000
3rd: VMWare Kubuntu
I get a bunch of errors about not knowing about fprintf and the likes.
I really need to get the built but am not having any luck whatsoever. Any advice you can give me is welcomed.
Unfortunately I don't have a linux partition right now and can't afford to wipe out all my other tools for my classes with a reinstall.
Thanks in advance.