Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

fpp preprocessor doesn't like # /* */

sergeyvz
Beginner
1,613 Views
Hello,
I'm using fpp to compile Fortran-77 subroutines in mixed C++/Fortran code.
It did work OK with other compilers/preprocessors, but now I've got the following error message withfpp from intel_fc_80 distribution:
#error: unknown fpp directive.
This message appears when the preprocessorsreads the following line:
# /* any text here */
Any idea ?
Thanks.
0 Kudos
1 Reply
TimP
Honored Contributor III
1,613 Views
That fpp is accepting only pre-defined and user-defined text macros. In several versions of fpp, combined macro and OpenMP pre-processing was broken, so a recent version is preferable.
If your application requires gcc -traditional pre-processing, that should be supported by the gcc installation required to support ifort (gcc -traditional -x c $*.f, and the like).

Message Edited by tim18 on 11-25-2005 05:04 PM

0 Kudos
Reply