jayurbain / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compilation error related to the 'fortran_wrapper' #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the latest version 0.4.1 
2. Make -j
3.

What is the expected output? What do you see instead?
Compilation errors related to the 'fortran_wrapper'.

What version of the product are you using? On what operating system?
Version 0.4.1 on Mac OSX 10.9.2

Please provide any additional information below.

The errors:

src/optimize/fortran_wrapper.c:38:6: error: function cannot return function 
type 'void (int *, int *, double *, double *, double *, int *, double *,
      double *, double *, double *, double *, int *, char *, int *, char *, int *, int *, double *)'
void setulb_f77(int *n, int *m, double *x, double *l, double *u, int *nbd,
     ^
src/optimize/fortran_wrapper.c:36:29: note: expanded from macro 'setulb_f77'
#define setulb_f77 F77_FUNC (setulb, SETULB)
                            ^
src/optimize/fortran_wrapper.c:38:6: error: a parameter list without types is 
only allowed in a function definition
src/optimize/fortran_wrapper.c:36:30: note: expanded from macro 'setulb_f77'
#define setulb_f77 F77_FUNC (setulb, SETULB)
                             ^
src/optimize/fortran_wrapper.c:46:6: error: function cannot return function 
type 'void (int *, int *, double *, double *, double *, int *, double *, int
      *, double *, double *, double *, int *)'
void lbfgs_f77(int *n, int *m, double *x, double *f, double *g,
     ^
src/optimize/fortran_wrapper.c:44:28: note: expanded from macro 'lbfgs_f77'
#define lbfgs_f77 F77_FUNC (lbfgs, LBFGS)
                           ^
src/optimize/fortran_wrapper.c:46:6: error: a parameter list without types is 
only allowed in a function definition
src/optimize/fortran_wrapper.c:44:29: note: expanded from macro 'lbfgs_f77'
#define lbfgs_f77 F77_FUNC (lbfgs, LBFGS)
                            ^
src/optimize/fortran_wrapper.c:56:2: error: use of undeclared identifier 
'setulb'
        setulb_f77(n, m, x, l, u, nbd, f, g, factr, pgtol, wa,
        ^
src/optimize/fortran_wrapper.c:36:30: note: expanded from macro 'setulb_f77'
#define setulb_f77 F77_FUNC (setulb, SETULB)
                             ^
src/optimize/fortran_wrapper.c:64:2: error: use of undeclared identifier 'lbfgs'
        lbfgs_f77(n, m, x, f, g, diagco, diag, iprint, eps,
        ^
src/optimize/fortran_wrapper.c:44:29: note: expanded from macro 'lbfgs_f77'
#define lbfgs_f77 F77_FUNC (lbfgs, LBFGS)

Original issue reported on code.google.com by afsa...@whirlscape.com on 10 Apr 2014 at 5:23