Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

$line directives unsupported in CVF6.6? Any replacement?

markg
Beginner
764 Views
Today i upgraded from CVF6.5 to 6.6 and have stumbled across the fact that the $line directives seem to be not supported any more? I was wondering if there was any replacement or something else i could use....
We use our own inhouse written FPP which is why we need to use them. It does lots that the CVF fpp does not do at this stage
cheers
mark
0 Kudos
6 Replies
Steven_L_Intel1
Employee
764 Views
$line? I never heard of this. Do you perhaps mean #line?
0 Kudos
markg
Beginner
764 Views
From the CVF6.6 Release notes....
"The following features from Microsoft Fortran PowerStation are not
supported by Visual Fortran:
.............
* Listing metacommands - $page, $pagesize, $linesize, $[no]list,
$include, $line"
They worked in 6.5
Can i perhaps use #line instead?
0 Kudos
Steven_L_Intel1
Employee
764 Views
I don't know what $line did, and would be astonished if it actually worked - I'm sure we didn't remove support for it. Maybe #line will work for you - that's a CPP-style directive.
0 Kudos
markg
Beginner
764 Views

$line did in CVF6.5 exactly what the #line CPP directive does - i.e to setup the correct line numbers in the source when you INCLUDE files (like common blocks) so that debugging works. It definately, positively *used* to work :-)

I tried #line and the f90 compiler complains about that directive so my guess is doesnt support it.

Anyway i am going to try a few more things. Thanks for you responses.

mark

0 Kudos
Steven_L_Intel1
Employee
764 Views
Curious. I'm travelling this week so can't try it out, but I'll look into it when I get back next week.
0 Kudos
durisinm
Novice
764 Views

Mark,

Can you expand on your comment about $line setting up the "correct" line numbers for INCLUDEd source files so that debugging "works"? What happens when you don't use $line?

Mike D.

Message Edited by durisinm on 03-31-2004 04:49 AM

0 Kudos
Reply