help-octave
[Top][All Lists]
Advanced

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

Re: installing nan packge


From: Jordi Gutiérrez Hermoso
Subject: Re: installing nan packge
Date: Wed, 22 May 2013 08:53:48 -0400

On 22 May 2013 03:38, ander <address@hidden> wrote:
> Dear Clemens,
>
> thank you very much for the fast answer.
>
> the output of "mkoctfile -v --mex histo_mex.cpp -lgomp" is the following:
>
> g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.4/octave/..
> -I/usr/include/octave-3.6.4/octave -I/usr/include/freetype2 -march=x86-64
> -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -I.
> histo_mex.cpp -o histo_mex.o
> In file included from /usr/include/octave-3.6.4/octave/mexproto.h:52:0,
>                  from /usr/include/octave-3.6.4/octave/mex.h:77,
>                  from histo_mex.cpp:47:
> /usr/include/c++/4.8.0/cstdlib: In function ‘long long int std::abs(long
> long int)’:
> /usr/include/c++/4.8.0/cstdlib:174:20: error: declaration of C function
> ‘long long int std::abs(long long int)’ conflicts with
>    abs(long long __x) { return __builtin_llabs (__x); }

This is a bug:

    https://savannah.gnu.org/bugs/?38746

This makes me wonder, though, why is the nan package even using mex
files? Those are for Matlab, not for Octave.

- Jordi G. H.


reply via email to

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