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 compilation is not supported #123

Open
lindyer opened this issue Sep 4, 2017 · 4 comments
Open

MinGW compilation is not supported #123

lindyer opened this issue Sep 4, 2017 · 4 comments

Comments

@lindyer
Copy link

lindyer commented Sep 4, 2017

I tried to use windows in vs compiled into DLL and lib, my project is created by QtCreator and compiled with mingw5.3 , but he did not link in, I tried to translate .a through mingw-utils,it still doesn't work, Please tell me which is wrong, thank you

@fpagliughi
Copy link
Contributor

Sorry I have no idea about this; I've never used MinGW. I tried a straight compile with is, but it's complaining about problems and missing functions in the socket library for Paho C. I don't know what it would take to link this all together.

@fpagliughi
Copy link
Contributor

I tried testing the latest updates to CMake on MinGW, but didn't have any success. If anyone is familiar with MinGW, could they give this a try and report back?

@spawnrider
Copy link

+1.
I am encoutering issues during linking with this message "undefined reference to ... "

@tgill880
Copy link

Sorry I have no idea about this; I've never used MinGW. I tried a straight compile with is, but it's complaining about problems and missing functions in the socket library for Paho C. I don't know what it would take to link this all together.

If the problem is with the unix socket library calls in Paho C, then minGW compiled programs will not link properly. I think you will need to use Cygwin to either build Paho C, or provide a shim between the minGW compiled program and Windows for the socket calls.

I will be attempting to port my current Paho C/C++ dependent program to Windows and will report my progress.

Refs:
MinGW, being Minimalist, does not, and never will, attempt to provide a POSIX runtime environment for POSIX application deployment on MS-Windows. If you want POSIX application deployment on this platform, please consider Cygwin instead.
Difference between Cygwin and minGW

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

No branches or pull requests

4 participants