Error lnk2026: module unsafe for safeseh image

前端 未结 3 1938
名媛妹妹
名媛妹妹 2020-12-29 00:57

I got this error when building a sample visual C++ project. First I downloaded 3 sample projects, all solve the same problem, print out all the prime numbers less than N (yo

3条回答
  •  [愿得一人]
    2020-12-29 01:45

    A picture is worth 0x3e8 words for the /SAFESEH:NO linker setting:

    enter image description here

    Or you can tell MASM to provide a guarantee that the object contains no exception handlers or that any exception handlers are defined with .SAFESEH, if you know that to be correct for your assembly code:

    enter image description here

    This will allow you to keep /SAFESEH enabled for the project's linking. But is it correct? You are making the guarantee! Be sure or use the first option.

提交回复
热议问题