Error while compling and linking the fortran g95 compiler to a dll

256 views
Skip to first unread message

Samuel

unread,
Aug 14, 2012, 9:52:08 AM8/14/12
to gg...@googlegroups.com
Hi All,
Please i recently encounter this error while traying to compile and link the fortran compiler with a dll file. 
the G95 version was downloaded from http://ftp.g95.org/g95-MinGW-41.exe
I am running on Windows 7, 32-bit platform
the output error is:
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0x3d7>: undefined reference to 'zdplaskin_bolsig_initcondition_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0x42d>: undefined reference to 'zdplaskin_bolsig_readcollision_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0x44c>: undefined reference to 'zdplaskin_bolsig_getcollision_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0x9c3>: undefined reference to 'zdplaskin_bolsig_sname_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0xd80>: undefined reference to 'zdplaskin_bolsig_reacsgn_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0x42ad>: undefined reference to 'zdplaskin_bolsig_solveboltzmann_'
C:\Users\208524485\AppData\Local\Temp/ccciiFYx.o:Zdplaskin_m.F90: (.test+0xd80>: undefined reference to 'zdplaskin_bolsig_geteedf_'
Please kindly advise

psycho_dad

unread,
Aug 14, 2012, 12:45:32 PM8/14/12
to gg...@googlegroups.com
Hey dude,
I take it that zdplaskin is the plasma kinetics program? If so, have you followed all the instructions found in the following link?
http://www.zdplaskin.laplace.univ-tlse.fr/download_solver.php

The error you got "undefined reference to 'zdplaskin_bolsig_initcondition" probably means that there's some problem finding the lib. Unfortunately, this is as far as I can go without more info from you, ie the file you tried to compile, the makefile or script you used etc.

According to this:
http://www.zdplaskin.laplace.univ-tlse.fr/download.php
g95 hasn't been officially tested by the developers, so perhaps you could try one of the other compilers if all fails :(

Cheers

leonidas...@gmail.com

unread,
Jun 24, 2018, 10:00:09 AM6/24/18
to gg95
Hi,

I know this is an old post but I would really appreciate if anyone found a solution into this.
Apparently the bolsig files are in .lib format which is not able to be read by fortran....
Why is this?
Is there a way to import them?

Thank you

Message has been deleted

jfh

unread,
Jun 24, 2018, 9:28:55 PM6/24/18
to gg95
I have never used a bolsig file or dll but were your bolsig files made by some Fortran compiler other than the one you are using, or even on a different machine?  Also, you might get answers faster by asking your question in the comp.lang.fortran newsgroup, which deals with all Fortran dialects and all Fortran compilers, instead of this one which is really for g95.

ziggy76

unread,
Jun 25, 2018, 5:23:45 AM6/25/18
to gg95
Hello,

I would suggest to use the free compiler gfortran.
On the zdplaskin site they provide a library tested for this compiler ( a dll file) and the instructions to use it
The fact that there is a specific library for each compiler shows the difficulty to match a library with a compiler.

Regards.

Leonidas Asimakoulas

unread,
Jun 25, 2018, 6:48:03 AM6/25/18
to gg...@googlegroups.com
Thank you both very much for your answers. It turns out I was using the wrong file for the bolsig library.
For windows it is the bolsig_g.lib that one should use as also mentioned in the user's guide! (Always ALWAYS check the user's guide)

I managed to run ZDPlasKin now. It was a little difficult for someone with no background knowledge in fortran but all good now.
Thank you for mentioning the group: comp.lang.fortran newsgroup
I will probably need it soon :)


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



--

                                                        

Leonidas Asimakoulas 

PhD candidate at QUB

Low Temperature Plasma Laboratory

Centre for Plasma Physics (CPP)

School of Maths and Physics
BT7 1NN,
Northern Ireland, U.K.

Reply all
Reply to author
Forward
0 new messages