Date: Sun, 28 Mar 1999 15:04:12 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Dan Bogdanov 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.