We need more details about
We need more details about how you compile and which compiler versions you use, as well as actual source code to demonstrate the problem. Using the attached files and IFort/Icl 13.1.1.171, in the...
View ArticleThis looks like a calling
This looks like a calling mechanism problem since Fortran doesn't know anything about C++ - it just has a standard way to interface with C. Is your program 32 or 64 bit? As far as I know there is only...
View ArticleI seem to be unable to post
I seem to be unable to post the full text of my update here, so I attach it as a text file.Please download and read,Thanks Attachments: AttachmentSizeDownloadintel.txt3.06 KB
View ArticleIn your case 2 (type embedded
In your case 2 (type embedded), the NULL char you observed after the string is likely accidental.type MyPro character(len=256) :: path integer :: flagend typeInitialize path as before, but set flag...
View ArticleThanks Jim, I checked with
Thanks Jim, I checked with various stack data around the fortran type and it was indeed accidental. This leaves the #2 issue still unsolved.
View ArticleI suggest that since your C++
I suggest that since your C++ side interface explicitly uses a size argument that you declare the C++ interface on the FORTRAN side with explicit size arguments as sgearg suggests.Note, you can create...
View ArticleThanks everyone, I finally
Thanks everyone, I finally found a workaround without extra size arguments.since the general issue is to pass any type, array or string. My interface code depends on a custom data mining tool that...
View Article
More Pages to Explore .....