r/programmingtools • u/rscarson • Aug 10 '16
Misc Tool that inlines calculating, programming and testing utilities into any text editor using the clipboard
http://rscarson.github.io/Lavendeux/
10
Upvotes
View all comments
Show parent comment
2
u/sixteenlettername Aug 12 '16
Tbh I don't think being able to compile under Cygwin is a necessity (I like it, but people seem to generally prefer MingW), I just wanted to check what environment you were using.
Although I had another play and managed to get it to build... I thought there was some linking issue going on, as it wasn't finding functions in libinterface.a at link time, but it looks like it's just down to _WIN32 not being defined by Cygwin gcc. Commenting out
#ifdef _WIN32, its correspoding#endif, the#define NTDDI_VERSION NTDDI_WIN2K(was producing a 'version mismatch' error) and finally the#include <conio.h>(missing header, doesn't seem to be needed though) lines seems to get a working build under Cygwin. I'm guessing it's picking up a 64-bit python27.dll from my PATH, as it didn't complain about that.Obviously these are hacky changes just to get it to build, but IIRC there's a clean, easy way to detect both MingW and Cygwin (and Visual Studio if you end up adding a project for that). A quick google shows this.
If you want, I can tidy that up and submit a PR (although it's a pretty minor change).
I've just noticed with the latest version the hotkey setting isn't saved between runs. Do I need to explicitly pass a config file on the command line in order to start it with a non-default hotkey?Edit: Ignore that last bit. I think it was losing the setting because I was running an older version (I hadn't updated the source, so after I got a successful build, I ran a version that doesn't have support for changing the hotkey).