#16 declick.c on Mac OS X

closed-fixed
nobody
None
5
2009-03-25
2006-06-02
Aaron
No

One other issue we have turned up is that declick.c
does not compile on OS X. All other .c files compile ok.

Here is the terminal output from gcc:

gcc -DDATADIR=\"/usr/local/share\"
-DLIBDIR=\"/usr/local/lib\"
-DAPPNAME=\"gnome_wave_cleaner\" -DHAVE_FFTW3
-DFFTWPREC=2 -Wall -DMAC_OS_X -O3 -DORBIT2=1
-D_REENTRANT -I/usr/include -I/usr/X11R6/include
-I/usr/X11R6/include/freetype2 -I/usr/include/malloc
-I/Developer/Headers/FlatCarbon -bind_at_load
-I/opt/local/include/libgnomeui-2.0
-I/opt/local/include/libgnome-2.0
-I/opt/local/include/libgnomecanvas-2.0
-I/opt/local/include/gtk-2.0
-I/opt/local/include/libart-2.0
-I/opt/local/include/gconf/2
-I/opt/local/include/libbonoboui-2.0
-I/opt/local/include/gnome-vfs-2.0
-I/opt/local/lib/gnome-vfs-2.0/include
-I/opt/local/include/gnome-keyring-1
-I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include
-I/opt/local/include/orbit-2.0
-I/opt/local/include/libbonobo-2.0
-I/opt/local/include/bonobo-activation-2.0
-I/opt/local/include/pango-1.0 -I/opt/local/include
-I/opt/local/include/freetype2
-I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
-I/opt/local/include/libxml2 -I/opt/local/include
-c declick.c
declick.c: In function 'do_declick_fft':
declick.c:599: error: parse error before '&' token
declick.c:628: error: invalid lvalue in unary '&'
declick.c:628: error: 'var' undeclared (first use in
this function)
declick.c:628: error: (Each undeclared identifier is
reported only once
declick.c:628: error: for each function it appears in.)
declick.c:628: error: 'cv' undeclared (first use in
this function)
declick.c:628: error: 'stddev' undeclared (first use in
this function)
make: *** [declick.o] Error 1

Discussion

  • Aaron
    Aaron
    2006-06-03

    Logged In: YES
    user_id=1533293

    This problem seems to be corrected by making the following
    two changes:

    1. in file declick.c line 599 change "stderr" to "std_err"

    2. in file declick.c line 628 change "&stderr" to "&std_err"

     
  • Jeff Welty
    Jeff Welty
    2009-03-25

    • status: open --> closed-fixed
     
  • Jeff Welty
    Jeff Welty
    2009-03-25

    changes were made to source to fix problem