Hi,
I tried to use the CLAPCK library to evaluate the eigenvectors for a given
matix.
when I tried to build the project it was giving two errors, they are:
1>Linking...
1>eig.obj : error LNK2019: unresolved external symbol _dgeev referenced in
function _main
1>C:\Documents and Settings\Desktop\Ex2\Debug\Ex2.exe : fatal error LNK1120: 1
unresolved externals
For your reference providing the code also.
#include"f2c.h"
#include"clapack.h"
#include"process.h"
#include"stdio.h"
#define SIZE 4
void MAIN_(){}
void MAIN__(){}
void _MAIN_(){}
main()
{
char JOBVL,JOBVR;
integer N=SIZE;
integer LDA=N;
integer LDVL;
integer LDVR;
integer LWORK;
integer INFO;
double
A[SIZE][SIZE]={{43,216,254,249},{49,198,193,211},{48,194,177,171},{46,214,225,169}};
double WR[SIZE];
double WI[SIZE];
double WORK[201];
double VL[SIZE];
double VR[SIZE];
JOBVL='N';
JOBVR='V';
LWORK=201;
LDVL=2;
LDVR=6;
dgeev(&JOBVL, &JOBVR, &N, A, &LDA, WR, WI, VL, &LDVL, VR, &LDVR, WORK, &LWORK,
&INFO);
/* Subroutine int dgeev_(char *jobvl, char *jobvr, integer *n, doublereal *a,
integer *lda, doublereal *wr, doublereal *wi, doublereal *vl,
integer *ldvl, doublereal *vr, integer *ldvr, doublereal *work,integer *lwork,
integer *info) */
system("cls");
printf("\n INFO=%d", INFO );
getch();
return 0;
}
The blas.lib, clapack.lib, libF77.lib and libI77.lib have been included in the
project.
Also the header files "f2c.h" and "clapack.h" included to the project...
Could you help me to rectify this.....Thanks in advance.
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.cs.utk.edu/private/lapack/attachments/20061124/d03bbed4/attachment.html
|