problem compiling finder v2.2.1
Kathleen Labrie wrote on Oct 06, 2007
When I try to compile finder v2.2.1 I get the following errors:
prtabo:
fits_read.c: In function âprintr_â:
fits_read.c:578: error: conflicting types for âfnroot_â
fits_read.c:126: error: previous declaration of âfnroot_â was here
...
replae:
t_tpeak.c: In function âtpcoln_â:
t_tpeak.c:1059: error: conflicting types for âsscan_â
t_tpeak.c:206: error: previous declaration of âsscan_â was here
I am using tables v3.7
How should I modify the source code to enable a smooth compilation?
Kathleen
prtabo:
fits_read.c: In function âprintr_â:
fits_read.c:578: error: conflicting types for âfnroot_â
fits_read.c:126: error: previous declaration of âfnroot_â was here
...
replae:
t_tpeak.c: In function âtpcoln_â:
t_tpeak.c:1059: error: conflicting types for âsscan_â
t_tpeak.c:206: error: previous declaration of âsscan_â was here
I am using tables v3.7
How should I modify the source code to enable a smooth compilation?
Kathleen
Mike Fitzpatrick wrote on Oct 06, 2007
Hi Kathleen,
What compiler and platform is complaining about this? Anyway, the fixes are simple:
fits_read.x:
Line 226 fnroot used as subroutine, should be int func()
t_tpeak.x:
Line 109/179 sscan() declared as int func(), should be subroutine
The most common errors you'll see are these sorts of mixed uses of functions and subroutines as well as mixed use of int/bool variables (e.g. an int used in a conditional or a bool set to YES instead of TRUE). Most all of these have been weeded out of the core system by now.
Cheers,
-Mike
What compiler and platform is complaining about this? Anyway, the fixes are simple:
fits_read.x:
Line 226 fnroot used as subroutine, should be int func()
t_tpeak.x:
Line 109/179 sscan() declared as int func(), should be subroutine
The most common errors you'll see are these sorts of mixed uses of functions and subroutines as well as mixed use of int/bool variables (e.g. an int used in a conditional or a bool set to YES instead of TRUE). Most all of these have been weeded out of the core system by now.
Cheers,
-Mike
Last post on Oct 06, 2007