Hi Ernst,
 
> The error code is:
> 
> cc1: warnings being treated as errors
> calibrate.c: In function 'final_filtercorr_init':
> calibrate.c:398: warning: format '%d' expects type 'int', but argument 3 has
> type 'long unsigned int'
> calibrate.c:398: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> make: *** [calibrate.ol] Error 1

OK. Your compiler defaults to generate 64 bit code. I get the same
result when adding the option -m64 in my Makefile.

Presumably Linrad will compile ok on your system if you
add the option -m32.

If you have autoconf installed, add it in Makefile.in like this:

CFL     = -g -O -DOSNUM=1 -W -Wimplicit -Wreturn-type -Wformat \
-m32 -Wunused -Wcomment -Wchar-subscripts -Wshadow -Wuninitialized \
-Wparentheses -Wstrict-prototypes -Werror -ffast-math \
-fomit-frame-pointer -c -o

In case you do not have autoconf, make the change in Makefile itself.
I have made this change for the next Linrad version - but it would
be nice to know if it helps. It causes no problem on my system which
has the compiler set up for 32 bit code while it is running on a 64 bit
system.

73

Leif / SM5BSZ 


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <linrad@antennspecialisten.se>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>

Reply via email to