From: "Nick Carter" Newsgroups: comp.os.msdos.djgpp Subject: NASM - passing string pointer from C++ to asm Date: Thu, 16 Oct 1997 13:46:18 +0100 Organization: MCRI Message-ID: <6252b5$o39@calypso.ulcc.ac.uk> NNTP-Posting-Host: mc18.mcri.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk This is probably a very noddy question but I haven't resolved it after quite a bit of source code hunting. I want to pass a string pointer as an argument to an assembler function. Calls to other routines passing integers are running fine. I guess I don't know how to declare or call it correctly, but can someone point out my mistake? extern void Passt(char *whatever); char *S; ...... S="AABB" Passt(S); Gives linking error as follows in the line above: Error: undefined reference to `Passt(char *)' TIA. -- Nick Carter.