delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/12:01:24

From: Gary AT bbs DOT st DOT net DOT au (Gary)
Newsgroups: comp.os.msdos.djgpp
Subject: undefined reference's
Date: 12 Oct 97 06:13:35
Organization: Soft-Tech +61-7-3869-2666
Lines: 28
Message-ID: <664_9710120619@softtech.st.net.au>
References: <343D8B84 DOT 41C6 AT jcu DOT edu DOT au>
NNTP-Posting-Host: sun.st.net.au
Cache-Post-Path: sun.brisnet.org.au!unknown AT softtech DOT brisnet DOT org DOT au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm sorry,after a bit of sleep and the sending of the prev msg I realised that
perhaps I did not fully describe the problem,where I have Error: file.c...
actually file.c is one of the files for the library.
While I think this is not specific to this group,there is the off chance it
could be,I have compiled and assembled a group of files,the code was written
for BorlandsC++4.0 flat model,IDEAL mode.I have converted the assembly routines
using the Ta2as converter,i had to do some editing,hopefully correctly.I have
created a library with these files.Along with them came a utility program that
I have compiled without any errors,however when I come to link it with the
newly created library I get.
 Error: file.c(.text+0x266): undefined reference to `DrawSolidCeilSolidFloor'
where `DrawSolidCeilSolidFloor' is a assembly function,and is called from
within file.c as follows.

 FloorCeilRtn = DrawSolidCeilSolidFloor;

 where FloorCeilRtn has been declared at the top of file.c as

 void (*FloorCeilRtn)(void);  and also  `DrawSolidCeilSolidFloor' as
 void DrawSolidCeilSolidFloor(void);

 the only other place where FloorCeilRtn is mentioned is in one of
 the assembly files as
 calll _FloorCeilRtn     it is here where I think the problem may be,before
 conversion it was...    call [dword ptr _FloorCeilRtn]   is the converted
 code correct or could it be causing the problem,or do I have to look else
 where to sort this out,could someone give me a insight here please.
 Thanking u all.

- Raw text -


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