* Error compiling gmfsk
@ 2006-03-05 0:24 Bob Nielsen
2006-03-05 1:58 ` Hamish Moffatt
0 siblings, 1 reply; 2+ messages in thread
From: Bob Nielsen @ 2006-03-05 0:24 UTC (permalink / raw)
To: linux-hams
I tried to compile gmfsk using the latest hamlib, but get the
following error:
make[3]: Entering directory `/home/n7xy/gmfsk-0.6/src/mt63'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DPACKAGE_DATA_DIR=\""/usr/
local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -
DORBIT2=1 -pthread -I/usr/local/include -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/
include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/
usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/
gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/
glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/
include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/
include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -
I../../src -I../../src/misc -g -O2 -Wall -MT dsp.o -MD -MP -MF
".deps/dsp.Tpo" \
-c -o dsp.o `test -f 'dsp.cc' || echo './'`dsp.cc; \
then mv -f ".deps/dsp.Tpo" ".deps/dsp.Po"; \
else rm -f ".deps/dsp.Tpo"; exit 1; \
fi
dsp.h: In function 'void LowPass2(typeInp, LowPass2elem&, typeW,
typeW, typeW)':
dsp.h:558: error: 'Out' was not declared in this scope
dsp.h: In function 'void LowPass2(typeInp, LowPass2elem&,
LowPass2weight&)':
dsp.h:565: error: 'Weigth' was not declared in this scope
dsp.h:566: error: 'Out' was not declared in this scope
make[3]: *** [dsp.o] Error 1
make[3]: Leaving directory `/home/n7xy/gmfsk-0.6/src/mt63'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/n7xy/gmfsk-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/n7xy/gmfsk-0.6'
make: *** [all] Error 2
Any ideas?
Bob, N7XY
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error compiling gmfsk
2006-03-05 0:24 Error compiling gmfsk Bob Nielsen
@ 2006-03-05 1:58 ` Hamish Moffatt
0 siblings, 0 replies; 2+ messages in thread
From: Hamish Moffatt @ 2006-03-05 1:58 UTC (permalink / raw)
To: linux-hams
On Sat, Mar 04, 2006 at 04:24:23PM -0800, Bob Nielsen wrote:
> I tried to compile gmfsk using the latest hamlib, but get the
> following error:
> dsp.h: In function 'void LowPass2(typeInp, LowPass2elem&, typeW,
> typeW, typeW)':
> dsp.h:558: error: 'Out' was not declared in this scope
[..]
Here's the patch that Debian uses for this. The error is due to the
newer g++ which is stricter.
The 0.7pre1 release of gmfsk does not need this patch.
Hamish
--- gmfsk-0.6.orig/src/mt63/dsp.h
+++ gmfsk-0.6/src/mt63/dsp.h
@@ -555,15 +555,15 @@
inline void LowPass2(typeInp Inp, LowPass2elem &Elem,
typeW W1, typeW W2, typeW W5)
{ double Sum, Diff;
- Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Out+=W5*Diff; }
+ Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Elem.Out+=W5*Diff; }
template <class typeInp>
inline void LowPass2(typeInp Inp, LowPass2elem &Elem, LowPass2weight &Weight)
{ double Sum, Diff;
Sum=Elem.Mid+Elem.Out;
Diff=Elem.Mid-Elem.Out;
- Elem.Mid+=Weight.W2*Inp-Weigth.W1*Sum;
- Out+=Weight.W5*Diff; }
+ Elem.Mid+=Weight.W2*Inp-Weight.W1*Sum;
+ Elem.Out+=Weight.W5*Diff; }
/*
inline void LowPass2(float Inp, double &Mid, double &Out,
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-05 1:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-05 0:24 Error compiling gmfsk Bob Nielsen
2006-03-05 1:58 ` Hamish Moffatt
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).