Date: Sun, 10 Jan 1999 18:45:47 +0000 (GMT) From: George Foot To: djgpp AT delorie DOT com Subject: Re: Allegro 3.1 linking error In-Reply-To: <01be3c9e$60f1a0e0$872e28c1@dan> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On 10 Jan 1999, Dan Bogdanov wrote: > When linking programs like demo.exe and other utils with liballeg.a, linker > gives > undefined references to BMP_YOFFSET from bank.o. What can be done to > make things work ? It looks like you didn't delete your old version before installing the new one. In one of the 3.0 WIPS the field `line_offset' got changed to `y_offset' and a `x_offset' was also added. This has made problems for you because during the build process Allegro creates and runs a program called `asmdef' which generates a header file for use in assembly language files that helps the assembly language routines deal with structures, by telling them the offsets of various fields. There is no such thing as an `implicit declaration' in assembly language, so the fact that this macro should have been changed from `BMP_LINEOFFSET' to `BMP_YOFFSET' wasn't noticed. The main thing you need to do is rebuild the helper header file. It's much safer though for you to rebuild the whole thing. Provided you don't have any custom modifications or addons in subdirectories, just delete your Allegro directory completely and reinstall it. -- george DOT foot AT merton DOT oxford DOT ac DOT uk ko cilre fi la lojban -- http://xiron.pc.helsinki.fi/lojban/