server.c:51:47: error: ‘type’ undeclared (first use in this function)
51 | if (RecvMsg.type == READ_REQ) type = READ_REP;
| ^~~~
server.c:51:47: note: each undeclared identifier is reported only once for each function it appears in
server.c:52:31: error: assignment to expression with array type
52 | RecvMsg.value = "DDDCCCCBBBBAAAA";
| ^
make: *** [Makefile:13: server.o] Error 1
if (RecvMsg.type == READ_REQ) RecvMsg.type = READ_REP;
strcpy(RecvMsg.value, "DDDCCCCBBBBAAAA");
'코딩 > 해결' 카테고리의 다른 글
[분산시스템] [분산 key-value store 서버와 해쉬 함수 기반 파티션] client.c (0) | 2024.05.10 |
---|---|
[wsl] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? (0) | 2024.05.05 |