Building the C API for Windows #1647
Unanswered
chriswolfram
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there a way to build the C API on Windows? On Linux and macOS, the makefiles seem to work, but on Windows the build.c file contains:
Does this mean the C API build system doesn't exist yet on Windows, or is there another way it is supposed to be done?
Context in case there is a wider workaround:
I'm trying to connect uWebSockets to the FFI of another language. This FFI system only supports C-API compatible dynamic libraries. On Linux and macOS, I am first running
make
in the capi directory to build the .o files, and then running something likegcc -O3 -flto *.o -lz -luv -lssl -lcrypto -lstdc++ ../uSockets/uSockets.a --shared -o libuwebsockets.so
to build a dynamic library. However, I haven't been able to get the .o files on Windows because make isn't working in the capi directory.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions