New version of cpp - Linux IBM power 8 compiler

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
spitz
Posts: 15
Joined: Fri Dec 12, 2003 9:19 pm
Location: OSU/COAS

New version of cpp - Linux IBM power 8 compiler

#1 Unread post by spitz »

I just got access to a power 8 IBM running Linux with compilers xlf90,xlf95, xlf90_r and xlf95_r and more. The cpp version is 6.2.0.
I cannot go back to older versions of cpp. Unfortunately, this version of cpp does not have the -traditional option anymore. This creates problems with the concatenation string // in Fortran. An example can be found in def_var.F
The cpp treats the string as a comment and leads to a error for the compilation. Does anybody find a way to work around or to have a working Linux_xlf.mk with the working flags. As it stands the new version of the c preprocessor will not work with the current version of ROMS. Thank you for your help.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: New version of cpp - Linux IBM power 8 compiler

#2 Unread post by kate »

This is as old as the hills, but worked the last time I needed it.
Attachments
cpp.tar
Source code for old cpp.
(120 KiB) Downloaded 329 times

spitz
Posts: 15
Joined: Fri Dec 12, 2003 9:19 pm
Location: OSU/COAS

Re: New version of cpp - Linux IBM power 8 compiler

#3 Unread post by spitz »

Thanks Kate, it worked perfectly.

Post Reply