difficulty linking f90 program using DISLIN

300 views
Skip to first unread message

John Weiner

unread,
Jan 2, 2017, 10:46:02 AM1/2/17
to dislin-users
Dear DISLIN mavens,

I am brand new to DISLIN and am trying to get it working on Ubuntu 16.10.

I installed the dislin distribution using apt-get dislin-10.6.linux.i586_64.db after having downloaded the distribution from the DISLIN web site.

The distribution is installed in /usr/local/dislin.  I have modified the .bashrc file to include the following:

DISLIN=/usr/local/dislin
export DISLIN
PATH=${PATH}:${DISLIN}/bin

LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH


I have already encountered the USE DISLIN problem due to a new version of gfortran and have recompiled dislin.f90 in the /usr/local/dislin/gf directory

Now when I try to link, I run into the following problem: using the link command on DISLIN_test_0.o

sudo gf95link -a DISLIN_test_0

generates a warning,

/usr/bin/ld: warning: libXm.so.4, needed by /usr/local/dislin/libdislin.so, not found (try using -rpath or -rpath-link)

so apparently the linker cannot find libXm.so.4.

I tried locaitng libXm.so.4 using

apt-file search libXm.so.4

and the result was,

libxm4: /usr/lib/x86_64-linux-gnu/libXm.so.4
libxm4: /usr/lib/x86_64-linux-gnu/libXm.so.4.0.4


Now I am at a loss as to make the location of libXm.so.4 known to the linker.

Any suggestions would be greatly appreciated.







Rauthe-Schöch, Armin

unread,
Jan 2, 2017, 3:07:26 PM1/2/17
to dislin...@googlegroups.com
Hi,

you could try to modify the gf95link script:

Line 85 (on my distribution)
ORIGINAL: libs="-L$DISLIN -ldislin"
NEW:          libs="-L$DISLIN -ldislin -L/usr/lib/x86_64-linux-gnu/"

Good luck!
Armin


--
Dr. Armin Rauthe-Schöch
Max Planck Institute of Chemistry
Air chemistry department
Hahn-Meitner-Weg 1
D-55128 Mainz
Germany
Tel. +49-(0)6131-305-4123

From: dislin...@googlegroups.com [dislin...@googlegroups.com] on behalf of John Weiner [johw...@gmail.com]
Sent: Monday, January 02, 2017 16:46
To: dislin-users
Subject: difficulty linking f90 program using DISLIN

--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Weiner

unread,
Jan 2, 2017, 3:17:36 PM1/2/17
to dislin...@googlegroups.com
Hi Armin and thanks for your reply.  Where can I find gf95link script?

Best regards,

John


You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dislin-users...@googlegroups.com.

Rauthe-Schöch, Armin

unread,
Jan 2, 2017, 3:50:11 PM1/2/17
to dislin...@googlegroups.com
Hi John

the command "which gf95link" should tell you where it is available on your system.

On my DISLIN installation (OpenSuSE Leap 42.1), it is in
/usr/local/bin/gf95link

Good luck,

Armin


--
Dr. Armin Rauthe-Schöch
Max Planck Institute of Chemistry
Air chemistry department
Hahn-Meitner-Weg 1
D-55128 Mainz
Germany
Tel. +49-(0)6131-305-4123
Sent: Monday, January 02, 2017 21:17
To: dislin...@googlegroups.com
Subject: Re: difficulty linking f90 program using DISLIN

John Weiner

unread,
Jan 2, 2017, 4:11:00 PM1/2/17
to dislin...@googlegroups.com
Hi Armin,

It turns out that in the Ubuntu Linux system it is also in /usr/local/bin/gf95link.  I assumed that everything in a /bin directory was a binary file and therefore not comprehensible to humans.  I see that my assumption is incorrect and that I can indeed make the edit.  I’ll give it a try and see what happens.  By the way, on your system where do the libXm.so.4 files reside?

Best, John

John Weiner

unread,
Jan 2, 2017, 5:18:26 PM1/2/17
to dislin...@googlegroups.com

Hi again Armin.  I edited the scrip per your lines, but it did not change the result.  Here is what I see,  The name of my Ubuntu box is Samba and I am user john.


john@Samba:/usr/local/dislin/gf$ sudo gf95link -a DISLIN_test


/usr/bin/ld: warning: libXm.so.4, needed by /usr/local/dislin/libdislin.so, not found (try using -rpath or -rpath-link)

/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldGetString'
/usr/local/dislin/libdislin.so: undefined reference to `XmRenditionCreate'
/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 `XmStringGenerate'
/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'
/usr/local/dislin/libdislin.so: undefined reference to `XmInternAtom'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateDialogShell'
/usr/local/dislin/libdislin.so: undefined reference to `xmLabelWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmListAddItems'
/usr/local/dislin/libdislin.so: undefined reference to `_XmStrings'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateMenuBar'
/usr/local/dislin/libdislin.so: undefined reference to `XmStringGetLtoR'
/usr/local/dislin/libdislin.so: undefined reference to `xmScrollBarWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldSetString'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreatePulldownMenu'
/usr/local/dislin/libdislin.so: undefined reference to `XmStringWidth'
/usr/local/dislin/libdislin.so: undefined reference to `XmMessageBoxGetChild'
/usr/local/dislin/libdislin.so: undefined reference to `XmListDeleteAllItems'
/usr/local/dislin/libdislin.so: undefined reference to `XmRenderTableAddRenditions'
/usr/local/dislin/libdislin.so: undefined reference to `xmFormWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmProcessTraversal'
/usr/local/dislin/libdislin.so: undefined reference to `XmRenditionFree'
/usr/local/dislin/libdislin.so: undefined reference to `xmToggleButtonWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmStringFree'
/usr/local/dislin/libdislin.so: undefined reference to `xmSeparatorWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateScrolledWindow'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateMessageDialog'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldSetInsertionPosition'
/usr/local/dislin/libdislin.so: undefined reference to `xmTextFieldWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateMessageBox'
/usr/local/dislin/libdislin.so: undefined reference to `xmComboBoxWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `xmFrameWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateRadioBox'
/usr/local/dislin/libdislin.so: undefined reference to `xmDrawingAreaWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `xmListWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmListAddItem'
/usr/local/dislin/libdislin.so: undefined reference to `XmAddProtocolCallback'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateScrolledList'
/usr/local/dislin/libdislin.so: undefined reference to `XmFontListFree'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldGetInsertionPosition'
/usr/local/dislin/libdislin.so: undefined reference to `XmFontListCreate'
/usr/local/dislin/libdislin.so: undefined reference to `XmListDeletePos'
/usr/local/dislin/libdislin.so: undefined reference to `xmCascadeButtonWidgetClass'
/usr/local/dislin/libdislin.so: undefined reference to `XmRenderTableFree'
/usr/local/dislin/libdislin.so: undefined reference to `XmStringLtoRCreate'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateScrollBar'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateMainWindow'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateSelectionBox'
/usr/local/dislin/libdislin.so: undefined reference to `XmComboBoxUpdate'
/usr/local/dislin/libdislin.so: undefined reference to `XmCreateFileSelectionBox'
/usr/local/dislin/libdislin.so: undefined reference to `XmTextFieldSetEditable'
/usr/local/dislin/libdislin.so: undefined reference to `XmListDeselectPos'
/usr/local/dislin/libdislin.so: undefined reference to `XmStringHeight'
collect2: error: ld returned 1 exit status
/usr/local/bin/gf95link: line 101: ./DISLIN_test: No such file or directory


So dislin still can't find the Xm shared objects.


I installed dislin from the db package using apt-get install, which is the usual way of installing new software in Ubuntu.  Is there any reason why there may be something fundamentally wrong with this approach?


Best regards, John

John Weiner

unread,
Jan 3, 2017, 12:25:04 AM1/3/17
to dislin...@googlegroups.com
Good morning Armin and other dislin mavens,

The day is off to a good start because I now have DISLIN working on my Ubuntu box.  The key was to look on the website http://www.mps.mpg.de/1756550/linux_test posted on 31 january 2016, almost a year ago.  The only slight modification for the latest version of Ubuntu (16.10) is that sudo apt-get install libmotif4 no longer works.  The error message indicates that this package has been made obsolete but suggests the equivalent packages to install.

After going to the directory /usr/local/dislin/gf and recompiling using sudo gfortran -c dislin.f90  AND doing the same in /usr/local/dislin/gf/real64, 

gf95link -c exa_f90 in the examples directory generated the executable without error.

The executable file performs as advertised, demonstrating the different features of dislin.

So, I think the lesson is that one needs some library routines from libmotif installed (via apt-get install) and that dislin.f90 has to be recompiled in both the …/gf directory and in the …/gf/real64 directory.

Best regards, 

John

On 2 Jan 2017, at 21:49, Rauthe-Schöch, Armin <armin.raut...@mpic.de> wrote:

John Weiner

unread,
Jan 3, 2017, 2:39:17 AM1/3/17
to dislin-users
OOPS! Not so fast...

I copied the "demonstration of CURVE" program from Appendix B: examples and called it demo_curve.f90

It compiles without error using sudo gfortran -c demo_curve.f90
It links without error using sudo gf95link -c demo_curve
But when I run the executable ./demo_curve, I get a segmentation fault.
Below is the copy-and-paste...

john@Samba:/usr/local/dislin/gf$ ./demo_curve
 <<<< Warning 36: File error in dislog!

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7f2a53baaed7 in ???
#1  0x7f2a53baa10d in ???
#2  0x7f2a534f485f in ???
#3  0x7f2a5350c8f4 in ???
#4  0x7f2a53515546 in ???
#5  0x7f2a53f486eb in ???
#6  0x7f2a53f496e4 in ???
#7  0x7f2a53f574d8 in ???
#8  0x563107235dd3 in ???
#9  0x563107235fa4 in ???
#10  0x7f2a534df3f0 in ???
#11  0x563107235bc9 in ???
#12  0xffffffffffffffff in ???
Segmentation fault (core dumped)

What can be cause of this problem?

Best regards, John

Sent: Monday, January 02, 2017 21:17

Subject: Re: difficulty linking f90 program using DISLIN
Hi Armin and thanks for your reply.  Where can I find gf95link script?

Best regards,

John

On 2 Jan 2017, at 21:07, Rauthe-Schöch, Armin <armin.raut...@mpic.de> wrote:

Hi,

you could try to modify the gf95link script:

Line 85 (on my distribution)
ORIGINAL: libs="-L$DISLIN -ldislin"
NEW:          libs="-L$DISLIN -ldislin -L/usr/lib/x86_64-linux-gnu/"

Good luck!
Armin


-- 
Dr. Armin Rauthe-Schöch
Max Planck Institute of Chemistry
Air chemistry department
Hahn-Meitner-Weg 1
D-55128 Mainz
Germany
Tel. +49-(0)6131-305-4123
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dislin-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dislin-users+unsubscribe@googlegroups.com.

Rauthe-Schöch, Armin

unread,
Jan 3, 2017, 3:14:24 AM1/3/17
to dislin...@googlegroups.com
Good morning John,

whether you need to compile the DISLIN module in "gf/" or "gf/real64/" depends on whether you are using the single or double precision library of dislin (the switch "-r8" of gf95link).

Cheers,

Armin

--
Dr. Armin Rauthe-Schöch
Max Planck Institute of Chemistry
Air chemistry department
Hahn-Meitner-Weg 1
D-55128 Mainz
Germany
Tel. +49-(0)6131-305-4123
Sent: Tuesday, January 03, 2017 06:25

John Weiner

unread,
Jan 3, 2017, 3:18:55 AM1/3/17
to dislin...@googlegroups.com
Yes, quite right.  The program runs fine in the /usr/local/dislin/gf directory without segmentation faults if one does not use the -r8 switch on gf95link.  I think I now have the dislin graphing in good shape for plotting my work in fortran 95 programs.  Thank you for your suggestions and encouragement.

Best regards,

John

Rauthe-Schöch, Armin

unread,
Jan 3, 2017, 3:25:27 AM1/3/17
to dislin...@googlegroups.com
Hi John,

I suspect that this is also due to a mixup of the single and double precision libraries of DISLIN.

Also I do not understand why you use "sudo" for compiling and linking. The "gfortran" command should be available for a normal user.

You can also use gfortran directly to do the linking:

Compile making sure you are using the single precision version:
gfortran -c demo.f90 -I/usr/local/dislin/gf/

Link with single precision library:
gfortran -o demo demo.o -ldislin


For double precision the commands would be:
gfortran -c demo.f90 -I/usr/local/dislin/gf/real64/
gfortran -o demo demo.o -ldislin_d
(this will not work with your "demo_curve.f90" because it uses single precision arguments for the calls to DISLIN functions)

Have fun with DISLIN !


Armin


--
Dr. Armin Rauthe-Schöch
Max Planck Institute of Chemistry
Air chemistry department
Hahn-Meitner-Weg 1
D-55128 Mainz
Germany
Tel. +49-(0)6131-305-4123

From: dislin...@googlegroups.com [dislin...@googlegroups.com] on behalf of John Weiner [johw...@gmail.com]
Sent: Tuesday, January 03, 2017 08:39
To: dislin-users
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com.

John Weiner

unread,
Jan 3, 2017, 3:32:45 AM1/3/17
to dislin...@googlegroups.com
Hi Armin,

I was using the sudo because I kept getting “permission denied” messages if I didn’t.  It might have to do with the permissions on DISLIN.mod.

I agree that the program generating a core dump is due to bad mixing of single and double precision.

Thanks for the tip about using gfortran for the linking.  It should take some of the fastidiousness out of typing at the terminal.

Best regards,

John


To unsubscribe from this group and all its topics, send an email to dislin-users...@googlegroups.com.

Armin Rauthe-Schöch

unread,
Jan 3, 2017, 3:35:12 AM1/3/17
to dislin...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi John,

you can even do the compiling and linking in one step if your program consists of one source file only:
gfortran -o demo demo.f90 -I/usr/local/dislin/gf/ -ldislin

Cheers,
Armin
>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> *From:* dislin...@googlegroups.com <mailto:dislin...@googlegroups.com> [dislin...@googlegroups.com <mailto:dislin...@googlegroups.com>] on behalf of John Weiner [johw...@gmail.com <mailto:johw...@gmail.com>]
>> *Sent:* Tuesday, January 03, 2017 08:39
>> *To:* dislin-users
>> *Subject:* Re: difficulty linking f90 program using DISLIN
>> The day is off to a good start because I now have DISLIN working on my Ubuntu box. The key was to look on the website http://www.mps.mpg.de/1756550/linux_test <http://www.mps.mpg.de/1756550/linux_test> posted on 31 january 2016, almost a year ago. The only slight modification for the latest version of Ubuntu (16.10) is that /sudo apt-get install libmotif4 /no longer works. The error message indicates that this package has been made obsolete but suggests the equivalent packages to install.
>>
>> After going to the directory /usr/local/dislin/gf and recompiling using /sudo gfortran -c dislin.f90 / AND doing the same in /usr/local/dislin/gf/real64,
>>
>> /gf95link -c exa_f90 /in the examples directory generated the executable without error.
>>
>> The executable file performs as advertised, demonstrating the different features of dislin.
>>
>> So, I think the lesson is that one needs some library routines from libmotif installed (via apt-get install) and that dislin.f90 has to be recompiled in both the …/gf directory and in the …/gf/real64 directory.
>>
>> Best regards,
>>
>> John
>>
>>> On 2 Jan 2017, at 21:49, Rauthe-Schöch, Armin <armin.raut...@mpic.de <mailto:armin.raut...@mpic.de>> wrote:
>>>
>>> Hi John
>>>
>>> the command "which gf95link" should tell you where it is available on your system.
>>>
>>> On my DISLIN installation (OpenSuSE Leap 42.1), it is in
>>> /usr/local/bin/gf95link
>>>
>>> Good luck,
>>> Armin
>>>
>>>
>>> --
>>> Dr. Armin Rauthe-Schöch
>>> Max Planck Institute of Chemistry
>>> Air chemistry department
>>> Hahn-Meitner-Weg 1
>>> D-55128 Mainz
>>> Germany
>>> Tel. +49-(0)6131-305-4123
>>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>> *From:* dislin...@googlegroups.com <mailto:dislin...@googlegroups.com> [dislin...@googlegroups.com <mailto:dislin...@googlegroups.com>] on behalf of John Weiner [johw...@gmail.com <mailto:johw...@gmail.com>]
>>> *Sent:* Monday, January 02, 2017 21:17
>>> *To:* dislin...@googlegroups.com <mailto:dislin...@googlegroups.com>
>>> *Subject:* Re: difficulty linking f90 program using DISLIN
>>>
>>> Hi Armin and thanks for your reply. Where can I find gf95link script?
>>>
>>> Best regards,
>>>
>>> John
>>>
>>>
>>>> On 2 Jan 2017, at 21:07, Rauthe-Schöch, Armin <armin.raut...@mpic.de <mailto:armin.raut...@mpic.de>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> you could try to modify the gf95link script:
>>>>
>>>> Line 85 (on my distribution)
>>>> ORIGINAL: libs="-L$DISLIN -ldislin"
>>>> NEW: libs="-L$DISLIN -ldislin -L/usr/lib/x86_64-linux-gnu/"
>>>>
>>>> Good luck!
>>>> Armin
>>>>
>>>>
>>>> --
>>>> Dr. Armin Rauthe-Schöch
>>>> Max Planck Institute of Chemistry
>>>> Air chemistry department
>>>> Hahn-Meitner-Weg 1
>>>> D-55128 Mainz
>>>> Germany
>>>> Tel. +49-(0)6131-305-4123
>>>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>> *From:* dislin...@googlegroups.com <mailto:dislin...@googlegroups.com> [dislin...@googlegroups.com <mailto:dislin...@googlegroups.com>] on behalf of John Weiner [johw...@gmail.com <mailto:johw...@gmail.com>]
>>>> *Sent:* Monday, January 02, 2017 16:46
>>>> *To:* dislin-users
>>>> *Subject:* difficulty linking f90 program using DISLIN
>>>>
>>>> Dear DISLIN mavens,
>>>>
>>>> I am brand new to DISLIN and am trying to get it working on Ubuntu 16.10.
>>>>
>>>> I installed the dislin distribution using apt-get dislin-10.6.linux.i586_64.db after having downloaded the distribution from the DISLIN web site.
>>>>
>>>> The distribution is installed in /usr/local/dislin. I have modified the .bashrc file to include the following:
>>>>
>>>> DISLIN=/usr/local/dislin
>>>> export DISLIN
>>>> PATH=${PATH}:${DISLIN}/bin
>>>>
>>>> LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
>>>> export LD_LIBRARY_PATH
>>>>
>>>> I have already encountered the USE DISLIN problem due to a new version of gfortran and have recompiled dislin.f90 in the /usr/local/dislin/gf directory
>>>>
>>>> Now when I try to link, I run into the following problem: using the link command on DISLIN_test_0.o
>>>>
>>>> sudo gf95link -a DISLIN_test_0
>>>>
>>>> generates a warning,
>>>>
>>>> /usr/bin/ld: warning: libXm.so.4, needed by /usr/local/dislin/libdislin.so, not found (try using -rpath or -rpath-link)
>>>>
>>>> so apparently the linker cannot find libXm.so.4.
>>>>
>>>> I tried locaitng libXm.so.4 using
>>>>
>>>> apt-file search libXm.so.4
>>>>
>>>> and the result was,
>>>>
>>>> libxm4: /usr/lib/x86_64-linux-gnu/libXm.so.4
>>>> libxm4: /usr/lib/x86_64-linux-gnu/libXm.so.4.0.4
>>>>
>>>> Now I am at a loss as to make the location of libXm.so.4 known to the linker.
>>>>
>>>> Any suggestions would be greatly appreciated.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups "dislin-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>>>> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe <https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe>.
>>>> To unsubscribe from this group and all its topics, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>>>> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "dislin-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>>> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe <https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe>.
>>> To unsubscribe from this group and all its topics, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>>> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "dislin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the Google Groups "dislin-users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dislin-users/L45eYrup48w/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "dislin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com <mailto:dislin-users...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

- --
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-(0)6131-305-4123
Cell phone +49-172-8169059
Email: armin.raut...@mpic.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJYa2I6AAoJEL1MlQaUKLNdceAH/ip+amiSgCyES6r5DBqIUNUj
rwMghSHMOf3dQc6NDSH6UQXwKV53hibN9OV+dWJ0iBUtwhDyQjBrjfA18NDj1ga4
Akj28+4E49yig/3adTfuws4oCFB5QNitAlBaFhoZtGPFOdNTNljghqTvmcQ4tt96
kribjWQighieXc1JBV8CjayIKGjMD6iRUOXDMPSWs1zsHYCdBlEQbxZIkqAoSN9d
1+QE1/A6kCx6QuGAxqemlr2ghhl1UeKRVzy9O/ANkKnqr/lmyezzmOwUnEj/gGD0
HvLirOsgiqp4vaq88dy7iGP6HfwKy+QeyH1K+bER3W6qq1frgyw3ijgbPj8+tM8=
=/g1v
-----END PGP SIGNATURE-----

John Weiner

unread,
Jan 4, 2017, 7:48:03 AM1/4/17
to dislin...@googlegroups.com
Hi Armin,

I tested your suggestion for an "all in one" command, gfortran -o demo
demo.f90 -I/usr/local/dislin/gf/ -ldislin, and it works fine. I was
wondering if you could enlighten me on the options. I presume the -I
option (as in -I/usr/local/ldislin/gf/) is an "include" option meaning
that the compiler should include this directory. But I don't understand
the -ldislin flag. I looked in the man page for gfortran but was unable
to identify an -l option that explained its presence. It certainly does
something, because omitting it causes the compilation to bomb.

It would be nice to write an alias for this somewhat tedious command,
but I found that changing the order of the options resulted in the
command not working...that is, I wanted to put all three flags, -o,
-I/usr/..., -ldislin, BEFORE the files on which the command is to
operate, but it didn't work. Do you have any suggestions?


Best regards,

John

John Wasilewski

unread,
Mar 10, 2017, 2:25:34 PM3/10/17
to dislin...@googlegroups.com
You might find some of this helpful:

--- 
Jojn


--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages