Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mingw + msys build failure #24

Closed
michael-herwig opened this issue Oct 31, 2019 · 4 comments
Closed

mingw + msys build failure #24

michael-herwig opened this issue Oct 31, 2019 · 4 comments

Comments

@michael-herwig
Copy link

Hi there,

I am currently porting this library to hunter (a cmake based package manger) and encountered build errors using mingw and msys.

Build logs can be found here:

Regards
Michael

@yhirose
Copy link
Owner

yhirose commented Nov 1, 2019

@michael-herwig, thanks for the feedback. As you can see the statement in README, cpp-linenoise "gathered code from following excellent libraries, clean it up, and put it into a C++ header file for convenience."
I would like to keep the cpp-linenoise code as close to the original source libraries as possible. If they fix the warnings, I would gladly merge the changes to cpp-linenoise.

@michael-herwig
Copy link
Author

@yhirose thanks for the response. Are you sure it's from linenoise? I just had a look at the mingw error line and comparing this method to linenoise it looks like the windows version is patched into it and is not from linenoise.

@yhirose
Copy link
Owner

yhirose commented Nov 1, 2019

As you can see in README, this library code is from the following libraries:

Basically, I didn't touch their implementations, rather just put them into a .hpp file as a C++ header-only library for my convenience.

linenoise itself still doesn't support Windows. (It doesn't support Unicode either.)
You can check the current status of the Windows support in linenoise here.
antirez/linenoise#113

You many also want to consider to use this library:
https://github.com/arangodb/linenoise-ng

Hope it helps,

@yhirose yhirose closed this as completed Nov 8, 2019
@chfanghr
Copy link

chfanghr commented Dec 6, 2019

I ran into the same issue and I make a patch to fix it.
link

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

No branches or pull requests

3 participants