sly2j / nanocernlib

A minimal linux version of the old cernlib containing almost all cernlib routines.
5 stars 6 forks source link

Add stdlib and stdio include preprocessor #5

Closed guiguem closed 1 year ago

guiguem commented 2 years ago

Dear @sly2j

Thanks a lot for porting cernlib to modern compilers! I have tested the installation on my machine (Mac ARM-M1, gcc 11+) and it seems to fail building. I was able to fix this easily by manually adding all the stdlib headers.

I also add an issue with the allow_unaligned_dataaccess function and accesi (compiler complains these have no forward declaration); easy fix, but it is unclear if I should do more?

Can you have a look and tell me if this works?

Thanks a lot!

sly2j commented 1 year ago

Thanks for committing back your changes. I just tested on several systems and it seems to work well everywhere.