Article View: comp.sys.mac
Article #25280ULMODT and ULDIVT not found while linking.
From: Larry Gouger
Date: Fri, 12 Feb 1988 03:35
Date: Fri, 12 Feb 1988 03:35
52 lines
1726 bytes
1726 bytes
I am creating an LDEF to display the files on a remote machine. I am
writing the LDEF mostly in MPW C along with an assemble header.
Each Cell in the list is of the form...
struct {
char name[80];
unsigned long length;
char moddate[28];
} CellData;
...and I want it printed into the cell in the following way...
File_name_of_DB_1 53,454,454 Mon Jan 11 13:34:12 1988
^
To format the number I have been doing the following...
unsigned long number;
char formatted_number[11];
short index,digit;
formatted_number[10] = '\0';
for (index = 9; (index >= 0) && (number > 0); index--){
if ((index == 5) || (index == 1))
formatted_number[index] = ',';
else {
digit = number % 10;
formatted_number[index] = '0' + digit;
number /= 10;
}
}
When I try to link this and its assembly header into an LDEF, I am
told that ULMODT and ULDIVT cannot be found by the linker.
What I have tried:
o I added "{CLibraries}"CSANELib.o and "{CLibraries}"Math.o to the
list of libraries being linked together. The linker lists them
as being unnecessary.
o Yes, I am using 2.0.2 of both MPW and C
Where are operations on unsigned longs handled?
--
-larry. -------------------------------
Larry Gouger TRW Inc., CoyoteWorks
Redondo Beach, CA
...!{uunet,cit-vax,trwrb}!wiley!larry
Technical Details
Message-ID:
<1915@wiley.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!wiley!larryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!wiley!larry From: larry@wiley.UUCP (Larry Gouger) Newsgroups: comp.sys.mac Subject: ULMODT and ULDIVT not found while linking. Message-ID: <1915@wiley.UUCP> Date: 12 Feb 88 03:35:49 GMT Distribution: na Organization: TRW Inc., Redondo Beach, CA Lines: 52 Keywords: ULMODT ULDIVT MPW C link