help-octave
[Top][All Lists]
Advanced

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

package nan


From: Jan Potac
Subject: package nan
Date: Mon, 28 Nov 2016 14:08:07 +0100

Trying to install nan-3.0.3 package on my octave 4.2 running on Win7. However, I have got an error asking me to allow the -std=c++11 or -std=gnu++11 in compiler options.
Any suggestions how to solve it? Thanks.

>> pkg install -forge nan
ls: /usr/local/: No such file or directory
linear.cpp: In function 'int save_model(const char*, const model*)':
linear.cpp:1900:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0; i<model_->nr_class; i++)
            ^
linear.cpp: In function 'void get_labels(const model*, int*)':
linear.cpp:2201:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<model_->nr_class;i++)
                ^
In file included from c:\octave\octave-4.2.0\lib\gcc\x86_64-w64-mingw32\4.9.4\include\c++\cstdint:35:0,
                 from C:\Octave\Octave-4.2.0\include\octave-4.2.0\octave/octave-config.h:64,
                 from C:\Octave\Octave-4.2.0\include\octave-4.2.0\octave/mex.h:51,
                 from train.c:34:
c:\octave\octave-4.2.0\lib\gcc\x86_64-w64-mingw32\4.9.4\include\c++\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library supp
ort for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
make: *** [train.mex] Error 1
make: Entering directory `/tmp/oct-wgfcfY/nan-3.0.3/src'
C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex "histo_mex.cpp"
C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex "covm_mex.cpp"
C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex "kth_element.cpp"
C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex "sumskipnan_mex.cpp"
C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex "str2array.cpp"
g++ -Wall -Wextra -Wconversion -O2  -c tron.cpp
g++ -Wall -Wextra -Wconversion -O2  -c linear.cpp
env CC=g++ C:/Octave/Octave-4.2.0/bin/mkoctfile-4.2.0.exe --mex -lblas train.c tron.o linear.o linear_model_matlab.c
make: Leaving directory `/tmp/oct-wgfcfY/nan-3.0.3/src'

pkg: error running `make' for the nan package.
error: called from
    install at line 200 column 5
    pkg at line 394 column 9

reply via email to

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