- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Error: The same named entity from different modules and/or program units cannot be referenced. [GETLASTERROR]
Here it is a simplified version that retains the error:
module modulo_SO
use IFWIN
use IFPORT
implicit none
contains
subroutine exec_command()
integer :: res
res = getlasterror()
end subroutine
end module
Does anyone know whether IFWIN and IFPORT can be compatible?
Thanks,
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are a few conflicts such as this one. You can use ONLY to pull in just the names you want (my preference in most cases) or use a renaming clause on the USE to rename the one you don't want out of the way.
My personal preference is also to use the individual modules such as KERNEL32 rather than IFWIN, which brings in a lot of baggage. Not that that would help in this case.
My personal preference is also to use the individual modules such as KERNEL32 rather than IFWIN, which brings in a lot of baggage. Not that that would help in this case.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are a few conflicts such as this one. You can use ONLY to pull in just the names you want (my preference in most cases) or use a renaming clause on the USE to rename the one you don't want out of the way.
My personal preference is also to use the individual modules such as KERNEL32 rather than IFWIN, which brings in a lot of baggage. Not that that would help in this case.
My personal preference is also to use the individual modules such as KERNEL32 rather than IFWIN, which brings in a lot of baggage. Not that that would help in this case.

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