From: Jeremy Penner Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro example linking?? Date: Sat, 9 Nov 1996 16:08:08 -0600 Organization: The University of Manitoba Lines: 25 Message-ID: References: <01bbcd1e$bf9beac0$LocalHost AT miller> NNTP-Posting-Host: winnie.freenet.mb.ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <01bbcd1e$bf9beac0$LocalHost@miller> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 8 Nov 1996, Neil Miller wrote: > > I am trying to compile the first example for Allegro (EX1.C). I tryo to > compile it and I get these errors while linking: > > EX1.cc(.text+0x19):undefined reference to 'allegro_init' ^^ You're compiling EX1.C with a capital C at the end. GCC takes this to mean it's a C++ file. RHIDE won't let me compile with a small c at the end, either. Is this a bug in RHIDE? But wait, there's more! > EX1.cc(.text+0x1e):undefined reference to 'install_keyboard' ^^^^^^^^^^^^^^^^^^^ THIS one means you haven't linked it to the Allegro library... Did you run MAKE in the Allegro directory before attempting to compile, like it said in README.TXT? Then, MAKE would have compiled these for you. Plus, it would have compiled the liballeg.a file you need to link this stuff to. Try reading the docs. It helps. --Jeremy Penner