Basics, Building SPICE Applications (FORTRAN) |
Table of ContentsBasics, Building SPICE Applications (FORTRAN) Note About HTML Links Environment Set-up Unix/Linux Windows A simple example program Unix/Linux Windows Basics, Building SPICE Applications (FORTRAN)
Note About HTML Links
In order for the links to be resolved, if not done already by installing the lessons package under the Toolkit's ``doc/html'' directory, create a subdirectory called ``lessons'' under the ``doc/html'' directory of the ``toolkit/'' tree and copy this document to that subdirectory before loading it into a Web browser. Environment Set-upUnix/Linux
Use a terminal window. Windows
Launch a command window with pre-set Intel Fortran compiler environment variables:
Programs -> Intel oneAPI YYYY -> Intel oneAPI command prompt for Intel 64 ... A simple example program
File tk_ver.f:
PROGRAM TK_VER CHARACTER*(20) VERSN CALL TKVRSN ( 'TOOLKIT', VERSN ) WRITE(*,*) 'Toolkit version: ', VERSN END Unix/Linux
$ gfortran tk_ver.f -o tk_ver /naif/toolkit/lib/spicelib.a $ ./tk_ver Toolkit version: N0067SPICE library naming does not conform to the UNIX convention of libname.a for use with the -L/path_to_libs/ -lname_of_lib compile option. Windows
> SET TKF77OPS=/fpscomp:all /assume:byterecl /check:bounds > ifort %TKF77OPS% /c /Tftk_ver.f Intel(R) Fortran Intel(R) 64 Compiler Classic ... > ifort %TKF77OPS% tk_ver.obj c:\naif\toolkit\lib\spicelib.lib Intel(R) Fortran Intel(R) 64 Compiler Classic ... -out:tk_ver.exe -subsystem:console tk_ver.obj c:\naif\toolkit\lib\spicelib.lib > .\tk_ver.exe Toolkit version: N0067 |