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

Accessing 2-dim array works for QuickWin app but not Consol app

Amalia_B_
Beginner
487 Views
I've got a large program where I'm writing a 2-dimensional array out to a file in a specific format:

do i=1, n

write(fid,*)array(i,0:m)

end do

where array is allocated with size (1:n, 0:m). This do loop compiles and works fine when I create and build the program as a QuickWin application, but when creating a new project as a Console application I getthis compile error on the 'write' statement line:

error #6200: A colon (:) is not valid in this context.

The easiest thing is to just re-write the do loop, but why do I get this error under a Console app but not a QuickWin app?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
487 Views
Please provide a complete source that shows the problem. I am 99.999% certain that the issue is unrelated to Console vs. QuickWin.
0 Kudos
Amalia_B_
Beginner
487 Views
Nevermind...found the problem.

0 Kudos
Reply