help-octave
[Top][All Lists]
Advanced

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

Re: Using LIBSVM with Octave on MAC


From: Thomas Treichl
Subject: Re: Using LIBSVM with Octave on MAC
Date: Wed, 13 May 2009 22:05:47 +0200
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Sunny Nanuwa schrieb:
Hi Thomas

Thank you very much with the help provided.
Your make2.m file worked and I can use the functions created in C/C++ by LIBSVM 
in octave under MAC.

Ok, fine.

What does the parameter "-Wp,-DMX_API_VER=0x07030001" do that '-o' can't?

-O..first level optimize code, but Octave.app internally uses -O3 optimization by default. So you can just forget about -O. The option -o normally followed by a <name> means give the compiler object output the name <name>. -O and -o are not the same but different.

The parameter "-Wp,-DMX_API_VER=0x07030001" means: -Wp..tell the preprocessor -D..define MX_API_VER to a value 0x07030001. If you have a look at any of the C files from libsvm, there it says

  #if MX_API_VER < 0x07030000
  typedef int mwIndex;
  #endif

but your reported error was

  svm_model_matlab.c:8: error: redefinition of typedef 'mwIndex'
  .../octave/mxarray.h:89:
  error: previous declaration of 'mwIndex' was here

Finally I replaced all *.obj names to *.o because the default on Mac systems is .o (.obj is Windows specific). Hope this answers your questions.

Best regards,

  Thomas


reply via email to

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