Mail Archives: djgpp/1997/10/13/12:01:24
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 -