Skip to content

Commit

Permalink
Add help to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Ria9993 committed May 5, 2024
1 parent 787d26b commit 700b9d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Tester/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
all:
g++ -Wall -Wextra -std=c++17 -pedantic -mavx -g Stress.cpp -o Stress
g++ -Wall -Wextra -std=c++17 -pedantic -mavx -g Stress.cpp -o Stress


# linux:
# clang++ -Wall -Wextra -std=c++17 -pedantic -mavx -g Stress.cpp -o Stress -I/usr/include/kqueue/ -L/usr/lib/x86_64-linux-gnu/ -lkqueue -pthread
1 change: 0 additions & 1 deletion Tester/Stress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ int test()
serv_addr.sin_family = AF_INET;
serv_addr.sin_port = htons(PORT);
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_len = sizeof(serv_addr);
if (connect(sockfd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)) < 0)
{
std::cerr << "Failed to connect" << std::endl;
Expand Down

0 comments on commit 700b9d3

Please sign in to comment.