Date: Sun, 31 Jan 1999 10:41:02 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Isaac Waldron cc: djgpp AT delorie DOT com Subject: Re: Accessing Constants in Assembly Code In-Reply-To: <78vpnt$pda1@ns1.lr.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sat, 30 Jan 1999, Isaac Waldron wrote: > C:\waldroni\projects\graphics>gxx -o testc.exe testc.cc -lgraphics > c:/djgpp/lib/libgraphics.a(blit.o)(.text+0x4):../src/blit.s: undefined > reference to `VideoRAM' Use the `nm' program (it's part of Binutils and should be already in your `bin' subdirectory) to see how does the compiler mangles the name of VideoRAM, then make sure the assembly source references the mangled name. Alternatively, declare VideoRAM ``extern "C"'', which disables mangling.