Re: RtlMoveMemory not being found to link in
- From: Steve Lionel <steve.lionel@xxxxxxxxxxxxx>
- Date: Mon, 26 May 2008 13:38:04 GMT
axtens wrote:
Using CVP I'm finding that compiling this fails with the following:
Linking...
Creating library Debug/BOAEF.lib and object Debug/BOAEF.exp
DFAXT.obj : error LNK2001: unresolved external symbol
_RTLCOPYMEMORY@12
Debug/BOAEF.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Can anyone give me an idea why the link isn't finding kernel32.lib?
That's not your problem. Note that the unresolved symbol is all upper case, while the aliases in the Win32 modules are always mixed case. This tells me that it is not seeing the definition of RtlCopyMemory from the module, so it is treating it as a Fortran routine with implicit interface. Since it is a subroutine, IMPLICIT NONE would not detect this.
I'm writing this from home where I don't have CVF installed, but if I try compiling your source with Intel Visual Fortran, I get errors about the mismatch of the first two arguments to RtlCopyMemory. These arguments are defined as address-sized integers, meaning that you have to pass LOC(arg) rather than the argument directly.
While looking at this I also noticed that the alias for RtlCopyMemory is actually _RtlMoveMemory@12. At first I thought this was a bug, but I note that there is no definition of _RtlCopyMemory@12 in kernel32.lib. I'll have to look into this to see what's going on, but at first blush this may be correct.
I suggest joining the Intel Visual Fortran user forum (see link below) where a lot of people familiar with using the Win32 API from Fortran hang out. CVF users are welcome there. I am missing some context from your last several posts, but it seems to me that you are thrashing around a lot and the problems you are seeing may be largely self-inflicted.
.
- Follow-Ups:
- Re: RtlMoveMemory not being found to link in
- From: axtens
- Re: RtlMoveMemory not being found to link in
- From: axtens
- Re: RtlMoveMemory not being found to link in
- References:
- RtlMoveMemory not being found to link in
- From: axtens
- RtlMoveMemory not being found to link in
- Prev by Date: Re: Garbage in dead zone
- Next by Date: Re: RtlMoveMemory not being found to link in
- Previous by thread: Re: RtlMoveMemory not being found to link in
- Next by thread: Re: RtlMoveMemory not being found to link in
- Index(es):
Relevant Pages
|