Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

64bit version of putty t017 doesn't work #89

Open
DougQuaid opened this issue Aug 20, 2013 · 3 comments
Open

64bit version of putty t017 doesn't work #89

DougQuaid opened this issue Aug 20, 2013 · 3 comments

Comments

@DougQuaid
Copy link

I compiled t017 from source and while the 32bit version works ok, the 64bit version fails to run with 0xc000007b: the application was unable to start correctly error.

I tracked this problem and it seems, that the compiler is embedding 32bit manifest (putty.mft) even into the 64bit build.

Looks like that during the parsing of putty.rc the _WIN64 constant is not defined. After editing the rc file that it will use 64bit manifest every time, the 64bit version runs without problems (of course, then the 32bit version doesn't work). I have no idea what is causing this problem, because it didn't work even after I defined _WIN64 manually in linker settings

FauxFaux added a commit that referenced this issue Aug 20, 2013
This flag shouldn't really be necessary; it appears to just be an assert
that your exception code is sane.  We're not actually using any languages
that have exceptions, and hopefully any Windows code that wants to use
exceptions within us is safe.

Maybe it's worth turning this on for x32 runs of mkfiles, just to check?
@FauxFaux
Copy link
Owner

I didn't do a p0.63-t017 release with x64 mainly because the build was broken for me too, and I couldn't be bothered to look at it. It turns out that I added some extra flags to the makefile generation in 6ae4ae8 which actually didn't work; no idea why I hadn't noticed until now. I've rolled these back (3d9df00) and now the application builds and starts perfectly fine for me.

To be clear, I'm using the nmake makefiles (Makefile.vc) to build, inside the Windows 7 Platform SDK ("WDK") 64-bit compiler toolchain: https://github.com/FauxFaux/PuTTYTray#building . I don't have 64-bit compilers available for any modern Visual Studio.

What build method are you using? I'm guessing this is missing that or other important defines. I can't really help unless I can try and diagnose it for myself, or you provide a lot more information about what's gone wrong with the manifesting after the defines have been set.

@DougQuaid
Copy link
Author

I am using visual studio 2012, I also tried vs2010 with the same result,. I will try to diagnose it further

@Jellyfrog
Copy link

Same problem here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants