主题:vc6.0里使用Fortran的imsl库的问题
[code=c]
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<iostream.h>
//Solve a real symmetric system of linear equations with iterative refinement.
extern "C" { void _stdcall LSASF (int*, float*, int*, float*, float*); }
extern "C" { void _stdcall DLSASF (int*, double*, int*, double*, double*); }
[/code]
我需要在vc6.0里使用Fortran的imsl库,将上面头文件及说明放在主函数main()里编译没问题,但是放在子函数boundary_ok()里编译就出现了下面的错误信息:
--------------------Configuration: main - Win32 Debug--------------------
Compiling...
boundary_ok.cpp
Linking...
boundary_ok.obj : error LNK2001: unresolved external symbol _DLSASF@20
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
main.exe - 2 error(s), 0 warning(s)
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<iostream.h>
//Solve a real symmetric system of linear equations with iterative refinement.
extern "C" { void _stdcall LSASF (int*, float*, int*, float*, float*); }
extern "C" { void _stdcall DLSASF (int*, double*, int*, double*, double*); }
[/code]
我需要在vc6.0里使用Fortran的imsl库,将上面头文件及说明放在主函数main()里编译没问题,但是放在子函数boundary_ok()里编译就出现了下面的错误信息:
--------------------Configuration: main - Win32 Debug--------------------
Compiling...
boundary_ok.cpp
Linking...
boundary_ok.obj : error LNK2001: unresolved external symbol _DLSASF@20
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
main.exe - 2 error(s), 0 warning(s)