LIB: Difference between revisions

164 bytes added ,  25 April 2017
Line 116: Line 116:


== Client code example ==
== Client code example ==
The following code should be saved as file test_generic_client.f90 :
<pre>
<pre>
! This reads single data files which have a header of 7680 bytes
! This reads single data files which have a header of 7680 bytes
Line 123: Line 124:
! or
! or
! gfortran -c -fpic test_generic_client.f90 && ld -shared test_generic_client.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/ -lgfortran -o libtest_generic_client.so
! gfortran -c -fpic test_generic_client.f90 && ld -shared test_generic_client.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/ -lgfortran -o libtest_generic_client.so
! (attention: the above - from "gfortran" to "libtest_generic_client.so" - is one looong line)


MODULE plugin_test_mod
MODULE plugin_test_mod
2,652

edits