Re: comment and IBM xlf



Markus Franke <Markus-Franke@xxxxxx> wrote:

I have Fortran 90 code and want to include a file (config.h) with
C-style comments, like /* */. When I try compile the file with IBM XLF
10.1 Compiler I get the following error messages:

I am pretty sure that the C preprocessor processes C comments, so it
seems that the compiler is looking at it before passing it to cpp.

You might try running cpp separately, and then sending the output
to XLF. I don't know if Fortran continuation lines will survive cpp,
though.

Try man cpp on a unix system.

-- glen


.



Relevant Pages

  • Re: Cpp Considered Harmful
    ... programming language, the compiler, the IDE, the libraries, etc. ... WRT exceptions, the fact of the matter is that placing certain ... >> regarding the CPP. ...
    (comp.lang.cpp)
  • Re: can preprocessor automatically make N array elements?
    ... # Can m4 statements be inserted into C code, like cpp statements? ... A C compiler traditionally includes a cpp step, ... although the loader is not traditionally part of the compiler. ... I don't if/where the ATT documentation is. ...
    (comp.lang.c)
  • Re: Compiling -- gcc -- Lex & Yacc
    ... cpp, was CREATED using lex and yacc (or more correctly, their Gnu ... It does eventually call the assembler and the ... the gnu site offers me the same 'info gcc' document that I ... of your compiler knowledge I am trying to find. ...
    (Fedora)
  • Thanks for the info... ^.^
    ... > definition in one of the source (.cpp) files. ... > This definition is where you can place the initialisation of the members, ... which basically meens that compiler is bad to ... my only problem was i declaired a "static gizmo myStaticGizmo" ...
    (alt.comp.lang.learn.c-cpp)
  • C++ sans the cpp Re: Conditional compilation sans the cpp
    ... And could not have code that required the compiler to know the ... There are other issues involved with the CPP that are worth considering. ... the declarations and definitions they refer to. ... The counterpart to this in Java is accomplished using the following: ...
    (comp.lang.cpp)