GridTools / cpp_bindgen

Library for generating C and Fortran bindings for C++ functions from C++
Other
14 stars 4 forks source link

Add `use iso_c_binding` at the top of generated modules #37

Closed havogt closed 4 years ago

havogt commented 5 years ago

Otherwise the pgi compiler will give a strange error message, something like

PGF90-S-0099-Illegal use of derived type

lukasm91 commented 5 years ago

Can you paste the generated file that does not compile? I don't think we are missing a use in the generated file. Didn't see #38 (we'll discuss there)

havogt commented 5 years ago

See #38 for the fix and then talk to pgi who is right. 😉