PDA

View Full Version : lf95: option to use integer as logical?


egt
03-21-2006, 02:14 PM
Hi,

we portet FORTRAN code from aix to linux and tried to compile it with lf95. The programs use integer variables as logicals.
The lf95 compiler messages following error: Combination of operand types invalid.

On aix we compiled the same code with xlf and option -qintlog, which allows to use integer variables as logicals. Is there an option to use integer variables as logicals also for lf95?

Thank you for your answer!!!

Lahey Support
03-22-2006, 08:34 PM
Sorry but the Lahey runtime does not support the use of integer variables as logicals. The syntax will need to be fixed to be compiled with the Lahey compilers.