- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(8): Error: If dummy arg is allocatable, actual arg must be a whole array and not a section.
If Arr will be in DLL but I will lie the interface of Arr like:
Code:Interface Subroutine Arr(A) !DEC$ ATTRIBUTES DLLIMPORT, ALIAS : 'Arr' :: Arr integer A(:) end subroutine Arr end interfaceI.e. A will not be declared in interface as allocatable all works!
And the second and main question: how Arr knows UBound of A!? Especially when Arr is a DLLs subroutine. And it doesnt matter if A is allocatable or integer A(:) (taking-form-array).
I hope someone will explain.
Stanislav
Link Copied
0 Replies

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