Hi,
I'm a newbie to the list so apologies if this has been asked already. I'm
using CodeWarrior Release 5 on Windows NT. I'm trying to use the 'long long'
integer data type for 64 bit integers, as follows:
#pragma longlong on
typedef unsigned long long Big;
I've used "#pragma longlong on" in all source files, yet when I try
compiling code using "Big"s it causes Link Errors such as "'__rt_sltoi64'
referenced from '<function name>' is undefined." It lists other symbols as
being undefined such as '__rt_mul64', '__rt_divu64', '__rt_cmpu64' etc. The
link errors seem to correspond to wherever expressions are used. For
example, the function:
int Digits(Big x, int base) {
int d;
for (d=0;x>0;d++) x/=base;
return d;
}
is reported as using undefined symbols '__rt_sltoi64', '__rt_divu64' and
'__rt_cmpu64'.
The code is part of a final year project so any help will be gratefully
received and acknowledged in the write-up :)
Thanks,
Paul Gargan - [EMAIL PROTECTED]