Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-17-2007, 07:17 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
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.
Old 07-19-2007, 07:03 AM   #2
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora, PCLinuxOS
Posts: 666

Rep: Reputation: 91
What actual commands did you execute?

Where did you get the source code (URL)?

Last edited by KenJackson; 07-20-2007 at 06:33 AM.
Old 07-20-2007, 12:29 AM   #3
LQ Newbie
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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, 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile QT tutorial examples Dravis Programming 12 01-13-2008 08:54 PM
libvorbis 1.0 compiler error eNTi Linux - General 3 01-04-2006 01:01 PM
libvorbis + error littlemidget Linux - Software 2 08-20-2004 01:09 AM
libvorbis wont compile dopefish Linux - Software 3 08-17-2004 05:46 AM
Mass-Compile C++ examples Worstje Linux - Newbie 0 04-03-2004 05:54 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration