- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just lost a couple of hours to what I perceive is a behavior of Intel Fortran 10.1, and I want to see if my impression is true and if there is a workaround.
I am working on a program and a subroutine, each in its own file. While developing the subroutine, I changed the number of dummy arguments and calling arguments in the subroutine and calling program, respectively.
When I hit "F5" or the green "Start Debugging" arrow, I started to get compilation errors saying that I had the wrong number of arguments in my calling statement. Being inexperienced with some of the "fancy" techniques I was using (allocatable arrays), I went off on a tangent looking for some rules and workarounds that would let me pass allocatable arrays to subroutines.
Turns out, I just needed to "Rebuild" the entire solution. My assumption is that the IDE was only rebuilding one of the files (the one in focus?) when I used the "F5" shortcut.
In CVF, I thought the IDE picked up changed files and automatically rebuilt what was necessary. I would think the Intel IDE would do this as well.
Is my assumption correct and is there a way to get the Intel 10.1 IDE to automatically take care of rebuilding all changed files when I start to debug?
Thanks!
Link Copied
- 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
Steve,
When I first switched to Intel, changed files would automatically recompile when I pressed F5. Somewhere along the way (I might have been experimenting with different compile/link options) this behavior stopped and changed files would not recompile automatically. The good news was debugging got much quicker. It had been taking 45+ seconds for the debugger to kick in. This dropped to a few seconds. Evidently not having to check 1000's of subroutines for changes made a big difference. I'm much happier with the new behavior and never tried to figure out what caused the change. However, when I occasionally forget to recompile before debugging, I can see the debugger "executing" comment lines because there is a mismatch. I would like to keep the "don't check for changes" before debuggingbehavior in future versions (unless it gets much, much quicker).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I normally do a build (not a rebuild) after making source changes. That you got the error about argument mismatches tells me that VS is indeed recompiling changed sources. But I have seen the behavior you describe with code that looks like this:
...
call sub (args)
...
subroutine sub (args)
and I change the subroutine but not the call. What happens here is that the compiler does not notice when processing the call that the interface to sub might be recreated later on, if there is an existing interface. (If none, then it waits to do the check.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As first installed, the IDE would ask if I wished to re-compile every time I changed a file and went right to debugging.
I checked the box "don't ask every time" and answered yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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