- #1
AIR&SPACE
- 101
- 0
I'm having some difficulty compiling a test project within Visual Studio 2010. I'm trying to test the Seldon package, but keep getting errors during build.
Specific errors I'm getting include (and vary between):
To counter this I #include 'd LAPACK++ and receive this error:
Contents of arch.h are:
I've nearly given up trying to get this to build, just thought I'd see if maybe there was a quick, KISS, you're an idiot... fix to whatever my problem is. Win7 -- Windows Visual Studio 2010
Specific errors I'm getting include (and vary between):
Code:
// Headers from CLAPACK, downloaded at http://www.netlib.org/clapack/.
// Modifications (by Vivien Mallet):
// Replacements:
// integer --> LAPACK_INTEGER
// real --> LAPACK_REAL
// doublereal --> LAPACK_DOUBLEREAL
// complex --> LAPACK_COMPLEX
// doublecomplex --> LAPACK_DOUBLECOMPLEX
// logical --> LAPACK_LOGICAL
// L_fp --> LAPACK_L_FP
// ftnlen --> LAPACK_FTNLEN
#ifndef __CLAPACK_H
#define __CLAPACK_H
/* Subroutine */ int cbdsqr_(char *uplo, LAPACK_INTEGER *n, LAPACK_INTEGER *ncvt, LAPACK_INTEGER *
nru, LAPACK_INTEGER *ncc, LAPACK_REAL *d__, LAPACK_REAL *e, LAPACK_COMPLEX *vt, LAPACK_INTEGER *ldvt,
LAPACK_COMPLEX *u, LAPACK_INTEGER *ldu, LAPACK_COMPLEX *c__, LAPACK_INTEGER *ldc, LAPACK_REAL *rwork,
LAPACK_INTEGER *info);
Code:
Error: identifier "LAPACK_INTEGER" is undefined
Error: identifier "LAPACK_REAL" is undefined
Error: identifier "LAPACK_COMPLEX" is undefined
etc.
To counter this I #include 'd LAPACK++ and receive this error:
Code:
arch.h(14): fatal error C1083: Cannot open include file: 'generic.h': No such file or directory
Contents of arch.h are:
Code:
// LAPACK++ (V. 1.1)
// (C) 1992-1996 All Rights Reserved.
// Linkage names between C, C++, and Fortran (platform dependent)
#ifndef _ARCH_H_
#define _ARCH_H_
#if defined(RIOS) && !defined(CLAPACK)
#define F77NAME(x) x
#else
#include <generic.h>
#define F77NAME(x) name2(x,_)
#endif
#if defined(SGI) && !defined(SGI_DEC)
#define SGI_DEC
extern "C" {
void mkidxname() {}
void mkdatname() {}
}
#endif
#endif // _ARCH_H_
I've nearly given up trying to get this to build, just thought I'd see if maybe there was a quick, KISS, you're an idiot... fix to whatever my problem is. Win7 -- Windows Visual Studio 2010