Hi all,
I am trying to use the DISLIN plotting interface with gfortran in ubuntu. I managed to install DISLIN, but i always get error messages when i try to link the .o file. I followed an example from the site
code: hello.f90
-----------------
program dbsp1
implicit none
real, parameter :: PI = 3.1415926
call setpag ("DA4P")
call metafl ("CONS")
call disini
call messag ("Hallo, Welt!", 50,50)
call number (PI, 4, 50, 150)
call disfin
end program dbsp1
I compiled it as
gfortran -c hello.f90
and linked as
dlink hello
and I get this big list of error message
/usr/bin/ld: warning: libXm.so.3, needed by /usr/local/dislin/libdislin.so, not found (try using -rpath or -rpath-link)
hello.o: In function `MAIN__':
hello.f90.text+0x1e): undefined reference to `_gfortran_set_std'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldGetString'
/usr/local/dislin/libdislin.so: undefined reference to `XmAddTabGroup'
/usr/local/dislin/libdislin.so: undefined reference to `XmScaleSetValue'
/usr/local/dislin/libdislin.so: undefined reference to `xmPushButtonWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmListSelectPos'
/usr/local/dislin/libdislin.so: undefined reference to `xmScaleWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmFileSelectionBoxGetChild'
I think I am missing some procedure in linking the files or exporting the path. I am a newbie and I am clueless. Any help in successfully running a simple example will be greatly appreciated. Thank you in advance.
-regards,
raghu
I am trying to use the DISLIN plotting interface with gfortran in ubuntu. I managed to install DISLIN, but i always get error messages when i try to link the .o file. I followed an example from the site
code: hello.f90
-----------------
program dbsp1
implicit none
real, parameter :: PI = 3.1415926
call setpag ("DA4P")
call metafl ("CONS")
call disini
call messag ("Hallo, Welt!", 50,50)
call number (PI, 4, 50, 150)
call disfin
end program dbsp1
I compiled it as
gfortran -c hello.f90
and linked as
dlink hello
and I get this big list of error message
/usr/bin/ld: warning: libXm.so.3, needed by /usr/local/dislin/libdislin.so, not found (try using -rpath or -rpath-link)
hello.o: In function `MAIN__':
hello.f90.text+0x1e): undefined reference to `_gfortran_set_std'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldGetString'
/usr/local/dislin/libdislin.so: undefined reference to `XmAddTabGroup'
/usr/local/dislin/libdislin.so: undefined reference to `XmScaleSetValue'
/usr/local/dislin/libdislin.so: undefined reference to `xmPushButtonWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmListSelectPos'
/usr/local/dislin/libdislin.so: undefined reference to `xmScaleWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmFileSelectionBoxGetChild'
I think I am missing some procedure in linking the files or exporting the path. I am a newbie and I am clueless. Any help in successfully running a simple example will be greatly appreciated. Thank you in advance.
-regards,
raghu