delorie.com/archives/browse.cgi | search |
From: | "Nick Carter" <N DOT Carter AT mcri DOT ac DOT uk DOT removethislastbit2mailme> |
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 |
Lines: | 23 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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; ...<snip>... S="AABB" Passt(S); Gives linking error as follows in the line above: Error: undefined reference to `Passt(char *)' TIA. -- Nick Carter.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |