Error lnk2026: module unsafe for safeseh image

前端 未结 3 1967
名媛妹妹
名媛妹妹 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:51

    In Visual Studio 2012 Express Edition:

    Right-click on your project ->
    Properties -> 
    Configuration Properties ->
    Linker ->
    Advanced and changed "Image Has Safe Exception Handlers" to "No (/SAFESEH:NO)"
    

提交回复
热议问题