Skip to content

Commit

Permalink
compile c and cpp files in octave
Browse files Browse the repository at this point in the history
  • Loading branch information
mmssouza committed Apr 17, 2016
1 parent 2580b3f commit 7750287
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.pyc
*.*~
octave-workspace
*.mexw*
*.mex*
*.o
*.pkl
5 changes: 5 additions & 0 deletions common_HF/batch_mex.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

set OCTAVE_PATH=c:\Octave\Octave-4.0.1
%OCTAVE_PATH%\bin\mkoctfile.exe --mex -I%OCTAVE_PATH%\include\octave-4.0.1\octave -L%OCTAVE_PATH%\lib\octave\4.0.1 weighted0_tar_cost.c
%OCTAVE_PATH%\bin\mkoctfile.exe --mex -I%OCTAVE_PATH%\include\octave-4.0.1\octave -L%OCTAVE_PATH%\lib\octave\4.0.1 tar_cost.c
%OCTAVE_PATH%\bin\mkoctfile.exe --mex -I%OCTAVE_PATH%\include\octave-4.0.1\octave -L%OCTAVE_PATH%\lib\octave\4.0.1 mixDPMatching_c.cpp
1 change: 0 additions & 1 deletion common_HF/common_matlab.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define COMMON_MATLAB

#include "mex.h"
#include "matrix.h"

#include "math.h"
#include "stdio.h"
Expand Down
2 changes: 1 addition & 1 deletion common_HF/tar_cost.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "mex.h"

bool bDebug=false;
//bool bDebug=false;

/*-----------------------------------------------------------------------
function HC=hist_cost_2(sc1,sc2)
Expand Down
2 changes: 1 addition & 1 deletion common_HF/weighted0_tar_cost.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "mex.h"

bool bDebug=false;
//bool bDebug=false;

/*-----------------------------------------------------------------------
function HC=hist_cost_2(sc1,sc2)
Expand Down

0 comments on commit 7750287

Please sign in to comment.