- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have a complex Fortran project, held within the Visual Studio.Net 2003 IDE. Any time i want to debug/start the
app, the whole source files are being recompiled again whether i changed anything or not.
If i create a simple test project, the problem does not come up on my machine.
Any help would be appreciated !
Regards
Chris
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had a similar problem and tracked it down to the fact that I had all my modules defined in one file with the exception of one that was in another file. This caused the dependency analyzer to throw its hands up and recompile all the files. Try putting all module definitions into one file, particularly if a module is reported as out of date when it wants to recompile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
However, in Debug mode i've found the following out:
If i load Visual Studio.Net and start Building for Debug/Release, the IDE
states, that the project files have changed. I select "Yes, Rebuild" and all source files are getting compiled & linked.
But each next time i start Building, VS again states that the project files have changed, but only the link process is being initiated then.
If i restart Visual Studio, all files getting compiled & linked again.
I have not changed the source code, so the files do definitely not need to be recompiled and linked either.
Any help is appreciated
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try this by renaming or moving your .PLG and .OPT files instead of deleting them to see if it solves your problem. If it doesn't, then just restore your files and you'll be no worse off.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
but i've never seen any .PLG, .OPT or 'debug documents'. How exactly is that meant ?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I usually recommend Build..Update All Dependencies.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I have found the origin of the problem.
Intel Visual Fortran 8.0 (w_fc_p_8.0.035) always recompilesany Fortran source code filelarger than around 20 kB (actuallythe exact limit may varydepending of the content or other thingsI think).This I know because the Fortran projects that contain small source code files are never recompiled if nothing is changed. I have also tried to make the source code file systematically smaller, and found that recompilation is not being done when the file is small enough (20 kB +/- 10 kB).
Maybe this is fixed in the new release w_fc_p_8.0.042 ?
Best wishes
Lars Petter Endresen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This happens over and over again. The forst time, when no object files exist, pressing F7 recompiles all files. The second time F7 is pressed, only the largest files are recompiled. This happens for 3 different users and 3 different projects.
Lars Petter
------ Build started: Project: PR1, Configuration: Debug|Win32 ------
Deleting intermediate files and output files for project 'PR1', configuration 'Debug|Win32'.
Compiling...
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAf.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAg.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAh.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAi.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAj.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAa.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGA.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAc.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAd.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAe.f
Creating library...
Lib /OUT:"Debug/pr1.lib" /NOLOGO Debug/f.obj Debug/g.obj Debug/h.obj Debug/i.obj Debug/j.obj Debug/a.obj Debug/b.obj Debug/c.obj Debug/d.obj Debug/e.obj
xilib: executing 'lib'
PR1 build succeeded.
------ Build started: Project: PR1, Configuration: Debug|Win32 ------
Compiling...
ifort /nologo /Zi /Od /QaxW
/QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAa.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGA.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAc.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAd.f
ifort /nologo /Zi /Od /QaxW /QxW /fpp /define:IFORTWIN32 /free /fpconstant /iface:cvf /module:"Debug/" /object:"Debug/" /asmattr:source /asmfile:"Debug/" /traceback /check:bounds /libs:static /threads /dbglibs /libdir:noauto /c /extfor:f C:lpeFLOWMODELOLGAe.f
Creating library...
Lib /OUT:"Debug/pr1.lib" /NOLOGO Debug/f.obj Debug/g.obj Debug/h.obj Debug/i.obj Debug/j.obj Debug/a.obj Debug/b.obj Debug/c.obj Debug/d.obj Debug/e.obj
xilib: executing 'lib'
PR1 build succeeded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I just wanted to say that I have submitted this problem to the Intelpremier support. Fortunately, the problem was not related to file size, but related to the combination of using the pre-processor and the use statement. The following code will enable the always recompiling problem in any project:
#ifdef FISH
use m_fish
#endif
Try to write this in a source code file and see what happens.Remember to compile with the /fpp switch. The "FISH" should not be defined, and the module m_fish should not exist.Every time you build or debug the solution Visual Studio complains that the file that contains the 3 lines above are out of date. We are using Microsoft Visual Studio .NET 2003 Enterprise Architect, Intel Visual Fortran 8.0 (version 0035) and Windows XP Professional on a Pentium 4 computer.
Lars Petter Endresen

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page