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

unhelpful diagnositc message

YertleTheTurtle
Beginner
332 Views
Hi:

For someone at Intel's attention:

Using VS, with fpp, if a program has a statement of the form

#include "a.f90"

and the file named "a.f90" doesn't exist, or can't be found, you willreceive a very puzzling error message:

".... error PRJ0019: A tool returned an error code"

You might want toturn this into a more useful diagnostic.
0 Kudos
4 Replies
abhimodak
New Contributor I
332 Views
I think "Tool returned an error code" also appears when something similar (that file does not exist) happens in a post-build event, for example, file copy.

Abhi
0 Kudos
jimdempseyatthecove
Honored Contributor III
332 Views
At the bottom (build output window) you will see

... Build Log bla bla bla .html

Open that up to see error (right click or is it shift click?)

Jim Dempsey

0 Kudos
mecej4
Honored Contributor III
333 Views
That's the MS VisualStudio IDE, acting as a middleman and replacing the errors messages given by the compiler by something blander. So your complaint should be aimed at Microsoft rather than Intel.

There is an option to produce a build log. Enable it. Then, after a failed build, do CTRL-click on the link to the log-file, and the file will be opened up in an editor tab.
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
333 Views
Yes Jim is correct, check the build log for the actual error. We have an FAQ on this error to point people to the build log. Not sure if we can give a better message or this comes from Microsoft Visual Studio, though. I am looking into it.

------

Wendy

Attaching or including files in a post

0 Kudos
Reply