Displaying 1 result from an estimated 1 matches for "lnk2017".
Did you mean:
lnk2019
2020 Nov 08
1
Obj doesn't link under MSVC
...a few days ago I could not find a solution yet.
I'm using LLVM in combination with the Microsoft's compiler and the
platform I'm
targeting is also MSVC x64.
When linking a generated .obj file with code from another cpp into the
dll, the
linker complains as follows:
```
s.obj : error LNK2017: 'ADDR32' relocation to '.rdata' invalid without
/LARGEADDRESSAWARE:NO
LINK : fatal error LNK1165: link failed because of fixup errors
```
which is funny because as far as I can tell, that flag should have no
effect on
x64 anyway. If I add it to the linker command, it says it's...