help-octave
[Top][All Lists]
Advanced

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

Using LIBSVM on a MAC within Octave


From: Luis Carrio
Subject: Using LIBSVM on a MAC within Octave
Date: Wed, 1 Aug 2012 20:03:07 -0700

Hey guys,

Admitting I'm a bit of a novice in these matters, I'm having trouble attempting to use libsvm-3.12, a support vector machine library <http://www.csie.ntu.edu.tw/~cjlin/libsvm/#matlab>

I've downloaded the most recent version, and attempted running the "make.m" file, where I receive a large number of errors.  For completeness, below is the laundry list of errors I'm experiencing.  While the 32 versus 64 bit issue seems apparent, I don't know how to resolve these errors, and supporting threads haven't really given me insight.  Any help would be sincerely appreciated (note, I'm running Snow Leopard 10.6.8):


ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctinterp.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctave.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/libcruft.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3f.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortranbegin.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortran.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_mxGetN", referenced from:
      _mexFunction in libsvmread.o
  "_mexPrintf", referenced from:
      _exit_with_help in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetJc", referenced from:
      _read_problem in libsvmread.o
  "_mxCreateSparse", referenced from:
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetIr", referenced from:
      _read_problem in libsvmread.o
  "_mxCreateDoubleMatrix", referenced from:
      _fake_answer in libsvmread.o
      _fake_answer in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetString", referenced from:
      _mexFunction in libsvmread.o
  "_mxGetPr", referenced from:
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mexCallMATLAB", referenced from:
      _read_problem in libsvmread.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
libsvmwrite.c: In function ‘libsvmwrite’:
libsvmwrite.c:69: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘int’
ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctinterp.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctave.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/libcruft.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3f.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortranbegin.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortran.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_mxGetM", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetN", referenced from:
      _libsvmwrite in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mxIsDouble", referenced from:
      _mexFunction in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mexPrintf", referenced from:
      _exit_with_help in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _mexFunction in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mxDestroyArray", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxIsSparse", referenced from:
      _mexFunction in libsvmwrite.o
  "_mxGetJc", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetIr", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetString", referenced from:
      _mexFunction in libsvmwrite.o
  "_mxGetPr", referenced from:
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
  "_mexCallMATLAB", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxDuplicateArray", referenced from:
      _libsvmwrite in libsvmwrite.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
svmtrain.c:5:20: error: ../svm.h: No such file or directory
In file included from svmtrain.c:8:
svm_model_matlab.h:1: warning: ‘struct svm_model’ declared inside parameter list
svm_model_matlab.h:1: warning: its scope is only this definition or declaration, which is probably not what you want
svmtrain.c: In function ‘do_cross_validation’:
svmtrain.c:70: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:74: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:74: error: ‘EPSILON_SVR’ undeclared (first use in this function)
svmtrain.c:74: error: (Each undeclared identifier is reported only once
svmtrain.c:74: error: for each function it appears in.)
svmtrain.c:75: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:75: error: ‘NU_SVR’ undeclared (first use in this function)
svmtrain.c:77: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:79: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:88: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:90: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:90: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:91: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:91: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:93: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:97: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:98: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:100: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:101: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c: In function ‘parse_command_line’:
svmtrain.c:116: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:116: error: ‘C_SVC’ undeclared (first use in this function)
svmtrain.c:117: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:117: error: ‘RBF’ undeclared (first use in this function)
svmtrain.c:118: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:119: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:120: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:121: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:122: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:123: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:124: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:125: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:126: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:127: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:128: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:129: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:130: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:155: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:158: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:161: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:164: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:167: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:170: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:173: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:176: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:179: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:182: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:185: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:188: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:204: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:207: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:207: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:208: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:208: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c: In function ‘read_problem_dense’:
svmtrain.c:228: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:229: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:238: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:241: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:247: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:247: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmtrain.c:248: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:251: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:254: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:261: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:261: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:262: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:262: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:263: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmtrain.c:267: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:269: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:269: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:269: error: dereferencing pointer to incomplete type
svmtrain.c:270: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:274: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:274: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:276: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:276: error: dereferencing pointer to incomplete type
svmtrain.c:277: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:277: error: dereferencing pointer to incomplete type
svmtrain.c:277: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:281: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:281: error: dereferencing pointer to incomplete type
svmtrain.c:284: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:285: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:287: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:288: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:290: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:290: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c: In function ‘read_problem_sparse’:
svmtrain.c:308: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:309: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:334: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:337: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:343: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:346: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:346: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:347: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:347: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:348: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmtrain.c:351: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:353: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:353: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:353: error: dereferencing pointer to incomplete type
svmtrain.c:354: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:358: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:358: error: dereferencing pointer to incomplete type
svmtrain.c:359: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:359: error: dereferencing pointer to incomplete type
svmtrain.c:362: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:362: error: dereferencing pointer to incomplete type
svmtrain.c:365: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:366: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c: In function ‘mexFunction’:
svmtrain.c:408: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:408: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmtrain.c:432: warning: assignment makes pointer from integer without a cast
svmtrain.c:439: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:440: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:457: warning: assignment makes pointer from integer without a cast
svmtrain.c:458: warning: passing argument 3 of ‘model_to_matlab_structure’ from incompatible pointer type
svmtrain.c:464: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:465: error: invalid use of undefined type ‘struct svm_problem’
svmpredict.c:4:20: error: ../svm.h: No such file or directory
In file included from svmpredict.c:7:
svm_model_matlab.h:1: warning: ‘struct svm_model’ declared inside parameter list
svm_model_matlab.h:1: warning: its scope is only this definition or declaration, which is probably not what you want
svmpredict.c:17: warning: ‘struct svm_node’ declared inside parameter list
svmpredict.c: In function ‘read_sparse_instance’:
svmpredict.c:32: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:32: error: dereferencing pointer to incomplete type
svmpredict.c:33: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:33: error: dereferencing pointer to incomplete type
svmpredict.c:36: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:36: error: dereferencing pointer to incomplete type
svmpredict.c: In function ‘predict’:
svmpredict.c:90: error: dereferencing pointer to incomplete type
svmpredict.c:90: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmpredict.c:90: error: (Each undeclared identifier is reported only once
svmpredict.c:90: error: for each function it appears in.)
svmpredict.c:119: error: ‘NU_SVR’ undeclared (first use in this function)
svmpredict.c:119: error: ‘EPSILON_SVR’ undeclared (first use in this function)
svmpredict.c:129: error: ‘C_SVC’ undeclared (first use in this function)
svmpredict.c:129: error: ‘NU_SVC’ undeclared (first use in this function)
svmpredict.c:137: error: ‘ONE_CLASS’ undeclared (first use in this function)
svmpredict.c:149: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmpredict.c:157: error: dereferencing pointer to incomplete type
svmpredict.c:158: warning: passing argument 3 of ‘read_sparse_instance’ from incompatible pointer type
svmpredict.c:163: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:163: error: dereferencing pointer to incomplete type
svmpredict.c:164: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:164: error: dereferencing pointer to incomplete type
svmpredict.c:166: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:166: error: dereferencing pointer to incomplete type
octave-3.4.0:8>
octave-3.4.0:8>
octave-3.4.0:8>
octave-3.4.0:8>
octave-3.4.0:8> make
ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctinterp.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctave.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/libcruft.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3f.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortranbegin.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortran.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_mxGetN", referenced from:
      _mexFunction in libsvmread.o
  "_mexPrintf", referenced from:
      _exit_with_help in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetJc", referenced from:
      _read_problem in libsvmread.o
  "_mxCreateSparse", referenced from:
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetIr", referenced from:
      _read_problem in libsvmread.o
  "_mxCreateDoubleMatrix", referenced from:
      _fake_answer in libsvmread.o
      _fake_answer in libsvmread.o
      _read_problem in libsvmread.o
  "_mxGetString", referenced from:
      _mexFunction in libsvmread.o
  "_mxGetPr", referenced from:
      _read_problem in libsvmread.o
      _read_problem in libsvmread.o
  "_mexCallMATLAB", referenced from:
      _read_problem in libsvmread.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
libsvmwrite.c: In function ‘libsvmwrite’:
libsvmwrite.c:69: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘int’
ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.4.0, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctinterp.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/liboctave.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/octave-3.4.0/libcruft.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/libfftw3f.a, missing required architecture x86_64 in file
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortranbegin.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgfortran.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in /Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_mxGetM", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetN", referenced from:
      _libsvmwrite in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mxIsDouble", referenced from:
      _mexFunction in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mexPrintf", referenced from:
      _exit_with_help in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
      _mexFunction in libsvmwrite.o
      _mexFunction in libsvmwrite.o
  "_mxDestroyArray", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxIsSparse", referenced from:
      _mexFunction in libsvmwrite.o
  "_mxGetJc", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetIr", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxGetString", referenced from:
      _mexFunction in libsvmwrite.o
  "_mxGetPr", referenced from:
      _libsvmwrite in libsvmwrite.o
      _libsvmwrite in libsvmwrite.o
  "_mexCallMATLAB", referenced from:
      _libsvmwrite in libsvmwrite.o
  "_mxDuplicateArray", referenced from:
      _libsvmwrite in libsvmwrite.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
svmtrain.c:5:20: error: ../svm.h: No such file or directory
In file included from svmtrain.c:8:
svm_model_matlab.h:1: warning: ‘struct svm_model’ declared inside parameter list
svm_model_matlab.h:1: warning: its scope is only this definition or declaration, which is probably not what you want
svmtrain.c: In function ‘do_cross_validation’:
svmtrain.c:70: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:74: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:74: error: ‘EPSILON_SVR’ undeclared (first use in this function)
svmtrain.c:74: error: (Each undeclared identifier is reported only once
svmtrain.c:74: error: for each function it appears in.)
svmtrain.c:75: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:75: error: ‘NU_SVR’ undeclared (first use in this function)
svmtrain.c:77: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:79: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:88: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:90: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:90: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:91: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:91: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:93: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:97: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:98: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:100: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:101: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c: In function ‘parse_command_line’:
svmtrain.c:116: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:116: error: ‘C_SVC’ undeclared (first use in this function)
svmtrain.c:117: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:117: error: ‘RBF’ undeclared (first use in this function)
svmtrain.c:118: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:119: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:120: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:121: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:122: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:123: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:124: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:125: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:126: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:127: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:128: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:129: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:130: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:155: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:158: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:161: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:164: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:167: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:170: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:173: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:176: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:179: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:182: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:185: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:188: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:204: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:205: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:206: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:207: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:207: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:208: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:208: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c: In function ‘read_problem_dense’:
svmtrain.c:228: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:229: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:238: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:241: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:247: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:247: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmtrain.c:248: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:251: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:254: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:261: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:261: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:262: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:262: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:263: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmtrain.c:267: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:269: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:269: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:269: error: dereferencing pointer to incomplete type
svmtrain.c:270: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:274: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:274: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:276: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:276: error: dereferencing pointer to incomplete type
svmtrain.c:277: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:277: error: dereferencing pointer to incomplete type
svmtrain.c:277: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:281: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:281: error: dereferencing pointer to incomplete type
svmtrain.c:284: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:285: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:287: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:288: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:290: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:290: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c: In function ‘read_problem_sparse’:
svmtrain.c:308: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:309: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:334: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:337: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:343: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:346: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:346: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:347: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:347: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:348: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmtrain.c:351: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:353: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:353: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:353: error: dereferencing pointer to incomplete type
svmtrain.c:354: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:358: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:358: error: dereferencing pointer to incomplete type
svmtrain.c:359: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:359: error: dereferencing pointer to incomplete type
svmtrain.c:362: error: invalid use of undefined type ‘struct svm_node’
svmtrain.c:362: error: dereferencing pointer to incomplete type
svmtrain.c:365: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:366: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c: In function ‘mexFunction’:
svmtrain.c:408: error: invalid use of undefined type ‘struct svm_parameter’
svmtrain.c:408: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmtrain.c:432: warning: assignment makes pointer from integer without a cast
svmtrain.c:439: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:440: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:457: warning: assignment makes pointer from integer without a cast
svmtrain.c:458: warning: passing argument 3 of ‘model_to_matlab_structure’ from incompatible pointer type
svmtrain.c:464: error: invalid use of undefined type ‘struct svm_problem’
svmtrain.c:465: error: invalid use of undefined type ‘struct svm_problem’
svmpredict.c:4:20: error: ../svm.h: No such file or directory
In file included from svmpredict.c:7:
svm_model_matlab.h:1: warning: ‘struct svm_model’ declared inside parameter list
svm_model_matlab.h:1: warning: its scope is only this definition or declaration, which is probably not what you want
svmpredict.c:17: warning: ‘struct svm_node’ declared inside parameter list
svmpredict.c: In function ‘read_sparse_instance’:
svmpredict.c:32: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:32: error: dereferencing pointer to incomplete type
svmpredict.c:33: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:33: error: dereferencing pointer to incomplete type
svmpredict.c:36: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:36: error: dereferencing pointer to incomplete type
svmpredict.c: In function ‘predict’:
svmpredict.c:90: error: dereferencing pointer to incomplete type
svmpredict.c:90: error: ‘PRECOMPUTED’ undeclared (first use in this function)
svmpredict.c:90: error: (Each undeclared identifier is reported only once
svmpredict.c:90: error: for each function it appears in.)
svmpredict.c:119: error: ‘NU_SVR’ undeclared (first use in this function)
svmpredict.c:119: error: ‘EPSILON_SVR’ undeclared (first use in this function)
svmpredict.c:129: error: ‘C_SVC’ undeclared (first use in this function)
svmpredict.c:129: error: ‘NU_SVC’ undeclared (first use in this function)
svmpredict.c:137: error: ‘ONE_CLASS’ undeclared (first use in this function)
svmpredict.c:149: error: invalid application of ‘sizeof’ to incomplete type ‘struct svm_node’
svmpredict.c:157: error: dereferencing pointer to incomplete type
svmpredict.c:158: warning: passing argument 3 of ‘read_sparse_instance’ from incompatible pointer type
svmpredict.c:163: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:163: error: dereferencing pointer to incomplete type
svmpredict.c:164: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:164: error: dereferencing pointer to incomplete type
svmpredict.c:166: error: invalid use of undefined type ‘struct svm_node’
svmpredict.c:166: error: dereferencing pointer to incomplete type



Many Thanks,

Luis


reply via email to

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