Pallavi-Banerjee21 / votca

Automatically exported from code.google.com/p/votca
0 stars 0 forks source link

dlpoly topology reader (c++ part) uses hard-coded fortran function name #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When testing VOTCA on AIX, I realized that xlf uses a different name mangling 
scheme than gfortran/ifc hence compiling fails at a linking stage as the 
fortran functions are not found.

cmake provides a way to detect the mangling scheme automatically.

Original issue reported on code.google.com by christop...@gmail.com on 13 Nov 2013 at 3:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 3b94dcde6237.

Original comment by jungh...@votca.org on 13 Nov 2013 at 3:37

GoogleCodeExporter commented 8 years ago
I guess it was one of the routines/functions that I left without the C-name
specified when binding F to C (for testing).
Thanks for fixing it.

---
Dr Andrey V Brukhno, <A.Brukhno_at_bath.ac.uk<http://a.brukhno_at_bath.ac.uk/>

Research Officer, Department of Chemistry, Bldn 1S,
The University of Bath,
Claverton Down,
BA2 7AY

Original comment by abruk...@googlemail.com on 13 Nov 2013 at 3:51

GoogleCodeExporter commented 8 years ago
The problem is basically that gfortran mangles a fortran function ffunction() 
-> ffunction_(), while xlf does ffunction() -> FFUNCTION__().

I added auto-detection for that in cmake.

Original comment by christop...@gmail.com on 13 Nov 2013 at 4:07