- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to build from
GitHub - Theldus/wsServer: wsServer - a tiny WebSocket server library written in C
on Windows with Intel 2017 Cluster for a Phi 1 board use, but I get errors trying to make static "libws.a". The makefile uses ar, nd I don't know how to duplicate in the -Qmic needed on building in Windows with icl. So far I have copied all the files into one directory and can build
icl -Qmic -g -fPIC -shared -ID:\phi\vs17\wss\flat ws.c utf8.c sha1.c handshake.c base64.c -o libws.micdso
and
icl -Qmic -fPIC -shared -ID:\phi\vs17\wss\flat ws.c utf8.c sha1.c handshake.c base64.c -o libws.micso.
When I try with -static and pthread I get error for reference to main. What would be a good command line to build static library?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe I should change to[ic to "... on Linux" as I have given up on Windows and have now a dev environment for Linux up.
But I don't see a way to use xiar or xild to make static lib for native Phi, only offload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This works:
icc -mmic -I ./ -c *.c
xiar rc libws.a ws.o utf8.o sha1.o base64.o handshake.o
icc -mmic -I ./ ws0.c libws.a -lpthread -o ws0.mic

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page