Answer the question
In order to leave comments, you need to log in
Help building a DLL from GitHub to GCC?
Good day to all, I'm trying to build a project located on github , if in short it's a dll library for working with WS
It seems that everything is going to 2 commands:
gcc -c -DLWS_EXPORTS lws2mql.c
gcc -shared -o lws2mql.dll lws2mql.o -L..\lib\ -lwebsockets
C:\C++\lws2mql\src>gcc -shared -o lws2mql.dll lws2mql.o -L..\lib\ -lwebsockets
c:/gcc/bin/../lib/gcc/x86_64-w64-mingw32/8.3 .0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: cannot find -lwebsockets
collect2.exe: error: ld returned 1 exit status
C:\C++\lws2mql\ src>
C:\C++\lws2mql\src>gcc -shared -o lws2mql.dll lws2mql.o -L..\MQL5\Libraries\ -lw
ebsockets
c:/gcc/bin/../lib/gcc/x86_64-w64- mingw32/8.3.0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: skipping incompatible ..\MQL5\Libraries\/libwebsockets.dll when search
ing for -lwebsockets
c:/gcc/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bi
n/ld.exe: skipping incompatible ..\MQL5\Libraries\/libwebsockets.dll when search
ing for -lwebsockets
c:/gcc/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../.. /../x86_64-w64-mingw32/bi
n/ld.exe: cannot find -lwebsockets
collect2.exe: error: ld returned 1 exit status
C:\C++\lws2mql\src>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question