linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Debugging ephemeris code
@ 2006-03-22  0:00 Shriramana Sharma
  2006-03-22 15:39 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Shriramana Sharma @ 2006-03-22  0:00 UTC (permalink / raw)
  To: Linux C Programming List

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.

-- 

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Debugging ephemeris code
  2006-03-22  0:00 Debugging ephemeris code Shriramana Sharma
@ 2006-03-22 15:39 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2006-03-22 15:39 UTC (permalink / raw)
  To: Shriramana Sharma; +Cc: Linux C Programming List


Shriramana Sharma wrote:

> 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
> 
> 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 bugs@ephemeris.com.

The return value is never used anyhow.

-- 
Glynn Clements <glynn@gclements.plus.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-22 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-22  0:00 Debugging ephemeris code Shriramana Sharma
2006-03-22 15:39 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).