HP-UX 11i compile failures
- From: Albert Chin <nautilus-list lists thewrittenword com>
- To: nautilus-list gnome org
- Subject: HP-UX 11i compile failures
- Date: Wed, 16 Oct 2002 15:03:42 -0500
Attempting to build 2.0.7 with the HP C compiler on 11i:
cc: "nautilus-directory-async.c", line 1232: error 1721: Operands for
< must be of arithmetic type or pointers to compatible types.
cc: "nautilus-directory-async.c", line 1232: error 1563: Expression in
if must be scalar.
cc: "nautilus-directory-async.c", line 1235: error 1721: Operands for
> must be of arithmetic type or pointers to compatible types.
cc: "nautilus-directory-async.c", line 1235: error 1563: Expression
> in if must be scalar.
cc: "nautilus-directory-async.c", line 1239: error 1721: Operands
> for < must be of arithmetic type or pointers to compatible types.
cc: "nautilus-directory-async.c", line 1239: error 1563: Expression
> in if must be scalar.
cc: "nautilus-directory-async.c", line 1242: error 1721: Operands
> for > must be of arithmetic type or pointers to compatible types.
cc: "nautilus-directory-async.c", line 1242: error 1563: Expression
> in if must be scalar.
gmake[2]: *** [nautilus-directory-async.lo] Error 1
gmake[2]: Leaving directory
`/opt/build/nautilus-2.0.7/libnautilus-private'
Problematic code:
if (callback_a->callback.directory < callback_b->callback.directory) {
return -1;
}
if (callback_a->callback.directory > callback_b->callback.directory) {
return 1;
}
Should I cast to fix?
--
albert chin (china thewrittenword com)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]