Menu

got LNK2017 error

sadb
2011-08-28
2013-04-20
  • sadb

    sadb - 2011-08-28

    Hi Japheth,

    I add CStr macro to your win64 example "Hello world", with SEH support (JWasm only), and invoke it somewhere, compiled pass, but the linker produces "error LNK2017: 'ADDR32' relocation to 'dispatch' invalid without /LARGEADDRESSAWARE:NO", but this macro work in another win64 console example " exception handling, uses WinInc v2+ (JWasm only)", why?

    Thanks.

     
  • japheth

    japheth - 2011-08-30

    > but this macro work in another win64 console example " exception handling, uses WinInc v2+ (JWasm only)", why?

    I don't know. Perhaps you did use a 32-bit register instead of a 64-bit register to hold the address of the string?

     
  • sadb

    sadb - 2011-08-30

    Yes, assign the address to a 64bit register as macro result, it work, thank you!

     

Log in to post a comment.