help-octave
[Top][All Lists]
Advanced

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

Re: installing nan packge


From: ander
Subject: Re: installing nan packge
Date: Wed, 22 May 2013 00:38:42 -0700 (PDT)

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); }
                    ^
/usr/include/c++/4.8.0/cstdlib:166:3: error: previous declaration ‘long int
std::abs(long int)’ here
   abs(long __i) { return __builtin_labs(__i); }
   ^
/usr/include/c++/4.8.0/cstdlib: In function ‘__int128 std::abs(__int128)’:
/usr/include/c++/4.8.0/cstdlib:179:19: error: declaration of C function
‘__int128 std::abs(__int128)’ conflicts with
   abs(__int128 __x) { return __x >= 0 ? __x : -__x; }
                   ^
/usr/include/c++/4.8.0/cstdlib:174:3: error: previous declaration ‘long long
int std::abs(long long int)’ here
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
/usr/include/c++/4.8.0/cstdlib:179:19: error: declaration of C function
‘__int128 std::abs(__int128)’ conflicts with
   abs(__int128 __x) { return __x >= 0 ? __x : -__x; }
                   ^
/usr/include/c++/4.8.0/cstdlib:166:3: error: previous declaration ‘long int
std::abs(long int)’ here
   abs(long __i) { return __builtin_labs(__i); }
   ^

moreover, it did not generated histo_mex.mex. In src folder I have three
files with a similar name: histo_mex.mexa64, histo_mex.mexw32 and
histo_mex.mexw64.

I forgot to write in my previous post that I am running arch linux
distribution on a 64 bit machine.

Thanks also for the bug page you posted. they say:
"The fix is to include mexproto.h outside of the extern "C" block" 
but I am not sure of what it means. Does it exist a quick fix or I have to
wait for new g++?





--
View this message in context: 
http://octave.1599824.n4.nabble.com/installing-nan-packge-tp4653205p4653235.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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