I’ve the IMSL libraries on my PC and I handle to run this system under in VS Code, utilizing a makefile. Nevertheless I do not handle so as to add the libraries once I use Visible studio (the combination).
Can somebody clarify me how I’ve to change the challenge properties so as to add the IMSL libraries.
The connected figures present what I’ve executed thus far: go to properties>linker>basic>extra library directories after which add the next three strains
C:Program Recordsdata (x86)RogueWaveimslfnl-2024.1.0win100in240x64includedll
C:Program Recordsdata (x86)RogueWaveimslfnl-2024.1.0win100in240x64includestatic
C:Program Recordsdata (x86)RogueWaveimslfnl-2024.1.0win100in240x64lib
however I get the next error:
Error in opening the compiled module file. Test INCLUDE paths [DENSE_LP_INT]
Can’t open embody file ‘link_fnl_static.h’
Thanks!
program test_solve_lin
USE DENSE_LP_INT, solely: DENSE_LP
embody ‘link_fnl_static.h’
IMPLICIT NONE
INTEGER, PARAMETER :: M=4, NVAR=6
INTEGER :: i
REAL(8) :: OBJ
REAL(8) :: A(M, NVAR), B(M), C(NVAR), XSOL(NVAR), DSOL(M), BL(M), BU(M)
INTEGER :: IRTYPE(M)
! TODO: Modernize this outdated crap
DATA A/1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, -1, &
0, 0, 0, 0, 1, 0, 0, 0, 0, 1/
DATA B/1.5, 0.5, 1.0, 1.0/
DATA C/-1.0, -3.0, 0.0, 0.0, 0.0, 0.0/
DATA BL/1.5, 0.5, 1.0, 1.0/
DATA BU/M*-1.D30/
!DATA IRTYPE/M*0/
IRTYPE(:) = 0
! Clear up the LP downside
write(*,*) “—————————————–“
write(*,*) “DENSE_LP, from IMSL Fortran Library”
write(*,*) “—————————————–“
CALL DENSE_LP(A, BL, BU, C, IRTYPE, OBJ, XSOL, DSOL)
write(*,*) ‘Goal=”, OBJ
write(*,*) “Resolution = ‘
do i = 1, NVAR
write(*,'(X,I,X,F9.4)’) i, XSOL(i)
enddo
finish program test_solve_lin
“`