- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I am kind of new to this software and looking for help from professional. I using this software for my final year project. I've encounter error while compiling file.
I start up and a new project in visual studio and create a console application called fn1.
I copy the following text into the fn1.f90 source file and save it.
! ================ Program start ==============
program fnl
! Include the necessary header file:
! For the dynamic library:
INCLUDE link_f90_dll.h
! For the static library:
! INCLUDE link_f90_static.h
!
! Declare which IMSL functions will be used
USE LSARG_INT
USE WRRRN_INT
! Declare variables
PARAMETER (LDA=3, N=3)
REAL A(LDA,LDA), B(N), X(N)
!
! Set values for A and B
!
! A = (33.0 16.0 72.0)
! (-24.0 -10.0 -57.0)
! (18.0 -11.0 7.0)
!
! B = (129.0 -96.0 8.5)
!
DATA A/33.0, -24.0,18.0,16.0,-10.0,-11.0,72.0,-7.0,7.0/
DATA B/129.0, -96.0, 8.5/
!
! The main IMSL function call to solve for x in Ax=B.
! This is the floating point version, to use
! double-precision arguments, call DLSARG.
!
CALL LSARG(A,B,X)
!
! Now print the solution x using WRRRN, a printing utility
!
CALL WRRRN('X',X,1,N,1)
END PROGRAM fnl
! ================ Program End ==============
I started by typing %F90% %F90FLAGS% fn1.f90 %LINK_F90% for shared library.
but it show error.
the error is
C:Visual Studio Projectsfn1fn1.f90(5): Error: Unrecognized token ' ?' skipped
C:Visual Studio Projectsfn1fn1.f90(5): Error: Unrecognized token 'h?' skipped
C:Visual Studio Projectsfn1fn1.f90(5): Error: Syntax error, found IDENTIFIER 'LINK_F90_DLL' when expecting one of:
C:Visual Studio Projectsfn1fn1.f90 Compilation Aborted (code 1)
This is the error i got.
Please reply to this thread asap as i need it urgently. Thanks..
FYI, my programming language is not very good. If possible, explain to me in term that i will understand..and step for me to take to able to let the program work. Thanks!!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
INCLUDE link_f90_dll.happarently, you have "smart quotes" there -- symbols () instead of normal apostrophes (''). Is it perhaps pasted from or typed in Microsoft Word?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page