* cpp in fortran
@ 2002-02-11 7:05 Ganesh Ramakrishnan
2002-02-11 16:26 ` Toon Moene
0 siblings, 1 reply; 4+ messages in thread
From: Ganesh Ramakrishnan @ 2002-02-11 7:05 UTC (permalink / raw)
To: gcc-help
sir,
Will you please explain me how to drfine
function like macros in Fortran linux? I am using cpp
for getting the line number & file name of a
particular function. After that i am not able to
compile it using g77. The problem is i think, cpp is
not supporting the fixed format.
I am defining this macro in a header file & including
it in fortran source file using #include.
#define fun(x) fun(x, __LINE__, __FILE__)
But in the output file, that particular line is going
beyont the 72 columns & because of that i am not able
to compile using g77.
Will you please suggest one method to get out of it?
Expecting earliest reply.
Thanking you,
R.Ganesh
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpp in fortran
2002-02-11 7:05 cpp in fortran Ganesh Ramakrishnan
@ 2002-02-11 16:26 ` Toon Moene
2003-06-23 5:03 ` Ganesh Ramakrishnan
0 siblings, 1 reply; 4+ messages in thread
From: Toon Moene @ 2002-02-11 16:26 UTC (permalink / raw)
To: Ganesh Ramakrishnan; +Cc: gcc-help
Ganesh Ramakrishnan wrote:
> I am defining this macro in a header file & including
> it in fortran source file using #include.
>
> #define fun(x) fun(x, __LINE__, __FILE__)
>
> But in the output file, that particular line is going
> beyont the 72 columns & because of that i am not able
> to compile using g77.
You could use the -ffixed-line-length-N option on the g77 command line
(where N is maximum length of the source lines you want to use; N=0
means: infinite).
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
^ permalink raw reply [flat|nested] 4+ messages in thread
* cpp in fortran
2002-02-11 16:26 ` Toon Moene
@ 2003-06-23 5:03 ` Ganesh Ramakrishnan
2003-06-23 19:56 ` Toon Moene
0 siblings, 1 reply; 4+ messages in thread
From: Ganesh Ramakrishnan @ 2003-06-23 5:03 UTC (permalink / raw)
To: Toon Moene; +Cc: gcc-help
Hi,
I am defining this macro in a header file &
including it in fortran source file using #include.
#define fun(x) fun(x, __LINE__, __FILE__)
But in the output file, that particular line is
going
beyont the 72 columns & it is not taking care of the
new line symbol '$' in fortran source code. It is
taking care of new line character with cpp which comes
with gcc-2.81 & gcc-2.95.
But in the new version (gcc-3.2) it gives the above
problem.
Can you please help me out in this.
Thanking you,
Ganesh R
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpp in fortran
2003-06-23 5:03 ` Ganesh Ramakrishnan
@ 2003-06-23 19:56 ` Toon Moene
0 siblings, 0 replies; 4+ messages in thread
From: Toon Moene @ 2003-06-23 19:56 UTC (permalink / raw)
To: Ganesh Ramakrishnan; +Cc: gcc-help
Ganesh Ramakrishnan wrote:
> I am defining this macro in a header file &
> including it in fortran source file using #include.
>
> #define fun(x) fun(x, __LINE__, __FILE__)
>
> But in the output file, that particular line is
> going
> beyont the 72 columns & it is not taking care of the
> new line symbol '$' in fortran source code. It is
> taking care of new line character with cpp which comes
> with gcc-2.81 & gcc-2.95.
> But in the new version (gcc-3.2) it gives the above
> problem.
Could you send me the source code - I cannot deduce what's wrong from
this description.
Thanks,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-23 19:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 7:05 cpp in fortran Ganesh Ramakrishnan
2002-02-11 16:26 ` Toon Moene
2003-06-23 5:03 ` Ganesh Ramakrishnan
2003-06-23 19:56 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).