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

Where did it put the output files? Bogus location - -

WSinc
New Contributor I
700 Views

I moved some source code to a folder on my desktop, and did a project build using those.

It did the build OK, but after searching for an hour, I could not find out where it put the output files.

I am referring to the compiled obj files, the project file VFPROJ,  EXE and the SLN file, and buildlog.

It tells me where they are, but I cant find them anywhere using Windows Explorer.

None of those files are anywhere near where I stored the source code.

It TELLS me that they are at D:\users\desktop, but that is NOT where my desktop is -

My desktop is under my USER NAME under users. So it appears that the location is

where I cant reference it.

 

The reason I need to find that is : I need to put the input data file where the default directory is,

and apparently that is not accessible to me. apparently it is accessible to VS, but thats not any help here.

Apparently that users\desktop is a BOGUS location, how would I get to it?

0 Kudos
4 Replies
Steven_L_Intel1
Employee
700 Views

Your source files don't have to be anywhere near the project files. The build log will show you where the project output goes. I admit it is a bit weird that there seems to be no way, with a project open, to get the path to that project. But you must have created the project and solution before building - did you not see where it was going? If you haven't changed the default location, VS creates projects under My Documents\Visual Studio 20xx.

0 Kudos
Steven_L_Intel1
Employee
700 Views

Also, if you open a new VS and are on the home page, hovering over the recent projects will reveal the paths.

0 Kudos
WSinc
New Contributor I
700 Views

Well, apparently putting the SOURCE files in a different location is what ****s everything up.

I didn't change the default output locations.

 

Actually, I was finally able to go where the output files went, but I had to type in the CWD,

it cannot be accessed using a mouse "point and click." What is really weird is -- the entire folder was empty

except where the output files were put.

The main thing is to be able to put INPUT files where I can open them easily within the program.

 

I didn't see a way to set the default CWD when the program begins execution. What is the rule for that?

Evidently not where the source files are located. Of course I could use CHANGEDIR to force that, right at the EXEC start.

But that seems rather awkward................

0 Kudos
Steven_L_Intel1
Employee
700 Views

What you want is the project property Debugging > Working Directory. If that is not set, then it uses the directory where the .vfproj file is.

There's no problem moving source files as long as you update the project (by removing the existing sources in the project and adding them from the new location.) Note that doing so tends to put absolute paths into the project file, rather than relative paths, so if you move the whole project the paths are probably wrong.

0 Kudos
Reply