Skip to content

Commit 29db14d

Browse files
committed
chore: Recompile using course-sdk
1 parent 5e4d5c7 commit 29db14d

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

compiled_starters/cpp/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88
set(THREADS_PREFER_PTHREAD_FLAG ON)
99

1010
find_package(Threads REQUIRED)
11+
find_package(ZLIB REQUIRED)
1112

1213
add_executable(server ${SOURCE_FILES})
1314

14-
target_link_libraries(server PRIVATE Threads::Threads)
15+
target_link_libraries(server PRIVATE Threads::Threads ZLIB::ZLIB)

compiled_starters/cpp/src/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <sys/socket.h>
88
#include <arpa/inet.h>
99
#include <netdb.h>
10+
#include <zlib.h>
1011

1112
int main(int argc, char **argv) {
1213
// Flush after every std::cout / std::cerr

compiled_starters/cpp/vcpkg.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": [
3-
"pthreads"
3+
"pthreads",
4+
"zlib"
45
]
5-
}
6+
}

solutions/cpp/01-at4/code/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88
set(THREADS_PREFER_PTHREAD_FLAG ON)
99

1010
find_package(Threads REQUIRED)
11+
find_package(ZLIB REQUIRED)
1112

1213
add_executable(server ${SOURCE_FILES})
1314

14-
target_link_libraries(server PRIVATE Threads::Threads)
15+
target_link_libraries(server PRIVATE Threads::Threads ZLIB::ZLIB)

solutions/cpp/01-at4/code/src/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <sys/socket.h>
88
#include <arpa/inet.h>
99
#include <netdb.h>
10+
#include <zlib.h>
1011

1112
int main(int argc, char **argv) {
1213
// Flush after every std::cout / std::cerr
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": [
3-
"pthreads"
3+
"pthreads",
4+
"zlib"
45
]
5-
}
6+
}

solutions/cpp/01-at4/diff/src/server.cpp.diff

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@@ -1,62 +1,57 @@
1+
@@ -1,63 +1,58 @@
22
#include <iostream>
33
#include <cstdlib>
44
#include <string>
@@ -8,6 +8,7 @@
88
#include <sys/socket.h>
99
#include <arpa/inet.h>
1010
#include <netdb.h>
11+
#include <zlib.h>
1112

1213
int main(int argc, char **argv) {
1314
// Flush after every std::cout / std::cerr

0 commit comments

Comments
 (0)