ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 for the reply, but I got things figured out now.
I just had the source and had set up my path's for everything. I had gotten my source from xiph.org, the release version. That doesn't really matter now though, I spent the last two nights on the vorbis irc room and with the help there I grabbed the latest svn snapshot, and got everything compiling and linking in MV C++ 2005.