delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/28/08:06:37

Date: Sun, 28 Mar 1999 15:04:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dan Bogdanov <dan AT parnu DOT ee>
cc: djgpp AT delorie DOT com
Subject: Re: linking DJGPP with NASM and getting undefined references
In-Reply-To: <01be75e9$55c8b800$0100007f@dan>
Message-ID: <Pine.SUN.3.91.990328150351.22925b-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 24 Mar 1999, Dan Bogdanov wrote:

> I tried to link an assembler function declared as
> 
> [GLOBAL _function_name__FUiUiUiUicUiUic]
> 
> with a C++ caller
> 
> function_name(struct strname *var, unsigned int x, unsigned int y, char z);

The easiest way to do that is to declare the assembly function
``extern "C"'', and then just use `_function_name'.  See section 8.10
of the DJGPP FAQ list.

- Raw text -


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