help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matcompat


From: Trond Eivind Glomsrød
Subject: Re: Matcompat
Date: 27 Aug 2001 21:15:09 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104

Roberto Hernández <address@hidden> writes:

> Hi all,
> 
> I tried installing Matcompat and got the following error:
> 
> --------------------------------------------
> make[2]: Entering directory `/tmp/installs/matcompat/scripts/audio'
> g++    -c -o endpoint.o endpoint.cc
> endpoint.cc: In method `void endpointer::zcpeakpick (short int *)':
> endpoint.cc:182: `sqrt' undeclared (first use this function)
> endpoint.cc:182: (Each undeclared identifier is reported only once for 
> each function it appears in.)
> make[2]: *** [endpoint.o] Error 1
> make[2]: Leaving directory `/tmp/installs/matcompat/scripts/audio'
> make[1]: *** [audio/] Error 2
> make[1]: Leaving directory `/tmp/installs/matcompat/scripts'
> make: *** [all] Error 2


The headers using the "sqrt" symbol isn't included in the file you're
trying to compile. Add

#include <math.h>

(or <cmath> as it is in C++ nowadays)

-- 
Trond Eivind Glomsrød
Red Hat, Inc.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]