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: Output ANSI text from generic code
    ... I did try T2A and it worked perfectly after changing the code to .cpp ... I suggested CT2A, which I prefer instead of T2A. ... the C++ compiler tends to be more careful about strict type ... and functions related to some data structures ...
    (microsoft.public.vc.language)
  • 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)
  • Re: Output ANSI text from generic code
    ... did try T2A and it worked perfectly after changing the code to .cpp from .c and recompiling with the required atl headers. ... CT2A has some advantages over T2A, as you can read from a comparison table shown here: ... In fact, the C++ compiler tends to be more careful about strict type checking than a pure C compiler, so I think that if you "write C code" in ..cpp files and so use the C++ compiler to build the final binary, you may have an increased quality in your source code. ... Data structure fields become class data members, and functions related to some data structures become methods of that class. ...
    (microsoft.public.vc.language)