linux-hams.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hamish Moffatt <hamish@cloud.net.au>
To: linux-hams@vger.kernel.org
Subject: Re: Error compiling gmfsk
Date: Sun, 5 Mar 2006 12:58:33 +1100	[thread overview]
Message-ID: <20060305015833.GA5261@cloud.net.au> (raw)
In-Reply-To: <73DDFD02-BF11-4AE3-922D-56A19AD410EE@oz.net>

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>

      reply	other threads:[~2006-03-05  1:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-05  0:24 Error compiling gmfsk Bob Nielsen
2006-03-05  1:58 ` Hamish Moffatt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060305015833.GA5261@cloud.net.au \
    --to=hamish@cloud.net.au \
    --cc=linux-hams@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).