-
Notifications
You must be signed in to change notification settings - Fork 24
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
LDPL is telling me that an external variable is already defined (Windows/MSYS2) #176
Comments
Hi there! Sorry for the late reply. I wouldn't depend on the C++ example, I think it's a little old and outdated. I will try to build it myself later, but I don't expect it to work. Windows isn't really a supported platform. It was at one point, then it wasn't, then it was again, and for the most time it hasn't been anymore. LPM does not work on windows, but you can download the libraries by hand (they are linked in README.md). Sorry for this and thank you for submitting an issue! |
That said, everything should work fine with MinGW but it's not really supported. |
@arabelladonna can you post a file generated by
somewhere? It should contain the line https://gist.github.com/saper/be135ce816ceb594893479989ed83843#file-hello-generated-cpp-L20
|
Also, does this help? diff --git a/examples/cpp-extension/hello.cpp b/examples/cpp-extension/hello.cpp
index 144f90a..a4c490e 100644
--- a/examples/cpp-extension/hello.cpp
+++ b/examples/cpp-extension/hello.cpp
@@ -2,7 +2,7 @@
#include <string>
#include "../../src/ldpl.h"
-ldpl_text MY_NAME;
+chText MY_NAME;
void HELLO()
{
@@ -12,4 +12,4 @@ void HELLO()
void GREET()
{
std::cout << "Salutations, " << MY_NAME << "!" << std::endl;
-}
\ No newline at end of file
+} |
I haven't been able to replicate this error on Linux, so I guess it must be a Windows error. Is anyone here able to test it on Windows? |
Oh! I can see the problem! Thank you so much @xvxx ! |
So, the
whiptail
command fails in MSYS2 (and I've not been able to find a way to install it) anddialog
isn't working as a replacement, but LDPL built out of the box in MSYS2's MinGW64 terminal (meaning the one that builds native Windows executables without the MSYS DLL dependency).I built the fibonacci example and it worked. So I tried building the C++ extension example and I got the following error:
I'm assuming this is a Windows-specific error.
I also seem to be having issues with
lpm
that are probably related.Is there a way to see what path it's talking about or why it says the syntax of the command is incorrect?
I read on Reddit that Windows support is in the works, but I'm assuming it's not finished yet? I figured I'd give it a shot anyways. At the very least, LDPL is compiling and it's able to compile lpm and examples without extensions without errors.
The text was updated successfully, but these errors were encountered: