- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in CVF6.6B I have a module, say:
module m
contains
subroutine test1(rx,ix)
!DEC$ ATTRIBUTES DLLEXPORT ,ALIAS:'SimpleTest' :: TEST1
integer(4), intent(in) :: ix
real(4), intent(inout) :: rx
rx=rx**ix
end subroutine test1
end module m
I make a DLL out of this using:
df /check:bounds /arch:host /threads /traceback /dll filename.F90 /link
If I make a static lib for USE in other CVF code using:
1. df /c /check:bounds /arch:host /libs:dll /nolibdir /traceback filenameF90
2. lib filename.obj
Will the fact that I have left in the line:
!DEC$ ATTRIBUTES DLLEXPORT ,ALIAS:'SimpleTest' :: TEST1
make any difference in the creation of the static lib?
Thanks in adv.
Tim
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a word, No.
I prefer using .def files to DLLEXPORT directives, to avoid such "code pollution". But I must say I don't practice what I preach :-).
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only effect I think you will see is if you USE the module in a statically linked application, you'll get a warning from the linker about a local definition of an imported symbol. This is harmless and you can ignore it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
What symbol will there be a warning on? the alias?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, since that's the global name the linker sees.

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