- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I'm currently using IFC18 with VS 15.6.7, all is working fine.
In my attempt to upgrade, I have installed VS 2019(16.8.4) and the oneAPI IFC (2021.1.1.99).
No problems with compiling/linking/executing code, however, when I try to run in debug , 'this' or 'this%SOMEDATA' is not visible anymore. In the watch window I get the following message:
'this' may only be used inside a nonstatic member function
similarly, data type pointers are invisible too, with the following message:
identifier "data_type_pointer" is undefined
Any associated data with the pointer can passed into routines and viewed fine there.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A solution to this issue with oneAPI HPC Toolkit of not being able to debug Fortran using VS without installing GDB is in the works. Stay tuned!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Deniz,
We have a dedicated forum for Fortran related issues Intel® Fortran Compiler - Intel Community. We are redirecting this issue to that forum.
Regards
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've never seen that message. That said, the error message appears to be pertinent to C++ language, not Fortran. You may be seeing an issue with the integration with the MSVS IDE. On an off-shot, try using:
THIS%SOMEDATA
IOW Fortran symbols are all uppercase (up-cased).
Also, the Watch window uses the context of the focus in the Call Stack window. Open that window to assure that the highlighted line is referencing that of the source window you are looking at. If not, you can double click to change focus.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jim, making everything uppercase in the watch window works.
Similarly, mouse hover type expansion would only work if the symbol is in uppercase, which means all lowercase defined symbols (pointers in my case, mainly for visualisation) in the code will need to be made uppercase. Not desirable.
Clearly some setting had changed, as this had not been an issue with my current setup. I wonder if it is user configurable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to install "Intel Distribution for GDB" from the oneAPI Base Toolkit, as it is this component that supplies the Fortran debugging support in Visual Studio. I have complained to Intel about this - especially as it forces you to install a bunch of other things you won't use.
- 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
A solution to this issue with oneAPI HPC Toolkit of not being able to debug Fortran using VS without installing GDB is in the works. Stay tuned!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page