www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/24/08:45:57

From: "Dan Bogdanov" <dan AT parnu DOT ee>
Subject: linking DJGPP with NASM and getting undefined references
Newsgroups: comp.os.msdos.djgpp
Message-ID: <01be75e9$55c8b800$0100007f@dan>
X-Newsreader: Microsoft Internet News 4.70.1161
Date: 24 Mar 1999 13:11:51 GMT
Lines: 24
NNTP-Posting-Host: 193.40.46.136
X-Trace: 922281111 15503 (none) 193.40.46.136
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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);


which is declared as

extern int function_name(struct strname *var, unsigned int x, unsigned int
y, char z);

where struct is 
struct strname {unsigned int a; unsigned int b; unsigned int c; unsigned
int d; char *pointer};

When linking, I get an undefined reference to the function. It's one of my
first attempts to combine DJGPP and NASM. It's for an example to a school
paper about
assembler programming, so please give me an idea of what is wrong !

Dan

- Raw text -


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