Skip to contentSkip to conversation

Debugging ephemeris code

DISCUSSION Shriramana Sharma 2 participants 2 messages Mar 22, 2006

lore
Share & tools
lore
#0 lore raw

In the LGPL ephcom library (53 KB) available from:
http://ephemeris.com/software.html do I get an error when using make or trying to compile ephcom.c directly:

gcc -g -O2 -c -o ephcom.o ephcom.c
ephcom.c: In function ‘ephcom_writebinary_block’:
ephcom.c:1418: error: conflicting types for ‘ephcom_outdouble’ ephcom.c:1266: error: previous declaration of ‘ephcom_outdouble’ was here ephcom.c: At top level:
ephcom.c:1767: warning: ‘ephcom_cheby’ declared inline after being called ephcom.c:1767: warning: previous implicit declaration of ‘ephcom_cheby’ was here
make: *** [ephcom.o] Error 1

So what shall I do to safely avert this error? (I don't want to mess up things so I ask the experts here.)

Thank you very much in advance.

Signature · 7 lines
Tux #395953 resides at http://samvit.org
playing with KDE 3.51 on SUSE Linux 10.0
$ date [] CCE +2006-03-22 W12-3 UTC+0530
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 14 lines · Shriramana Sharma

In the LGPL ephcom library (53 KB) available from:
http://ephemeris.com/software.html do I get an error when using make or trying to compile ephcom.c directly:

gcc -g -O2 -c -o ephcom.o ephcom.c
ephcom.c: In function -F¡ephcom_writebinary_block¢:-A ephcom.c:1418: error: conflicting types for -F¡ephcom_outdouble¢-A ephcom.c:1266: error: previous declaration of -F¡ephcom_outdouble¢ was here-A ephcom.c: At top level:
ephcom.c:1767: warning: -F¡ephcom_cheby¢ declared inline after being called-A ephcom.c:1767: warning: previous implicit declaration of -F¡ephcom_cheby¢ was -A here
make: *** [ephcom.o] Error 1

Quoted 2 lines

So what shall I do to safely avert this error? (I don't want to mess up things so I ask the experts here.)

Change line 1266 from:

	double ephcom_outdouble(FILE *, double);
to:
	int ephcom_outdouble(FILE *, double);

And report this issue to [email protected].

The return value is never used anyhow.

Signature · 5 lines
Glynn Clements <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html