machinezone / IXWebSocket

websocket and http client and server library, with TLS support and very few dependencies
BSD 3-Clause "New" or "Revised" License
539 stars 173 forks source link

A check for 8-byte atomics is needed, as 32-bit platforms may require `libatomic` linking #513

Open barracuda156 opened 5 months ago

barracuda156 commented 5 months ago
Undefined symbols:
  "___atomic_fetch_add_8", referenced from:
      __ZN2ix15ConnectionState9computeIdEv in IXConnectionState.cpp.o
      __ZN2ix18WebSocketTransport13sendHeartBeatENS_15SendMessageKindE in IXWebSocketTransport.cpp.o
ld: symbol(s) not found
bsergean commented 4 months ago

We could make it a 32 bits atomic if that helps.

barracuda156 commented 4 months ago

@bsergean Yes, if 8-byte atomics isn’t used, we won’t need libatomic linking.