arangodb / linenoise-ng

A small self-contained alternative to readline and libedit that supports UTF-8 and Windows and is BSD licensed.
Other
359 stars 53 forks source link

Linking to the CXX executable example fails under MinGW-w64, msys2 due to using gcc instead of g++ #14

Open CinchBlue opened 7 years ago

CinchBlue commented 7 years ago

I use msys2, which support native executable builds within a POSIX-like environment.

Currently, CMakeLists.txt is setup to produce some sort of Makefile that seems to be compiling with gcc and not g++.

log.txt

I manually compiled the program with this command from within the ./tst/ folder:

 g++ example.c -L../build/ -llinenoise -I../include/

I can verify that the program is working correctly. So perhaps a change to the CMake configuration file is needed.