www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/31/03:43:56

Date: Sun, 31 Jan 1999 10:41:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Isaac Waldron <waldroni AT lr DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Accessing Constants in Assembly Code
In-Reply-To: <78vpnt$pda1@ns1.lr.net>
Message-ID: <Pine.SUN.3.91.990131104043.25086T-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019