08:23 < ws-client> ryo debian enjoyer 08:23 < ws-client> https://zillyhuhn.com/cs/.1686810191.png 08:23 < ws-client> uhm is this what u sent @ryozuki it says POGGERS2 but is a car? xd 08:55 < ws-client> yes 08:55 < ws-client> he sent a flying car 08:56 < ws-client> ok thank and weird xd 08:56 < ws-client> jopsti u like the new emoji button? 08:56 < ws-client> i like all the new features 08:56 < ws-client> pog pog 08:56 < ws-client> chillerdrags is typing 08:56 < ws-client> so epic 08:56 < ws-client> ikr 08:57 < ws-client> legit discord alternative 😂 08:57 < ws-client> whats discord? 08:57 < ws-client> i dunno 09:15 <+bridge> 😴 10:19 <@heinrich5991> ChillerDragon: check IRC DMs 17:25 <+bridge> damn, i cant link a simple code with googletest... 17:25 <+bridge> i get a lof of undefined reference to gtest library... 17:27 <+bridge> ```shell 17:27 <+bridge> gcc test.o a.o -o test /usr/local/lib/libgtest_main.a 17:27 <+bridge> /usr/local/bin/ld: test.o: warning: relocation against `_ZSt4cerr' in read-only section `.text._ZN7testing8internal8GTestLog9GetStreamEv[_ZN7testing8internal8GTestLog9GetStreamEv]' 17:27 <+bridge> /usr/local/bin/ld: /usr/local/lib/libgtest_main.a(gtest_main.cc.o): in function `main': 17:27 <+bridge> /nobackup/srcs/googletest-release-1.11.0/build/../googletest/src/gtest_main.cc:51: undefined reference to `testing::InitGoogleTest(int*, char**)' 17:27 <+bridge> /usr/local/bin/ld: /usr/local/lib/libgtest_main.a(gtest_main.cc.o): in function `RUN_ALL_TESTS()': 17:27 <+bridge> /nobackup/srcs/googletest-release-1.11.0/build/../googletest/include/gtest/gtest.h:2490: undefined reference to `testing::UnitTest::GetInstance()' 17:27 <+bridge> /usr/local/bin/ld: /nobackup/srcs/googletest-release-1.11.0/build/../googletest/include/gtest/gtest.h:2490: undefined reference to `testing::UnitTest::Run()' 17:27 <+bridge> /usr/local/bin/ld: /usr/local/lib/libgtest_main.a(gtest_main.cc.o): in function `_GLOBAL__sub_I_main': 17:28 <+bridge> /usr/include/c++/7/iostream:74: undefined reference to `std::ios_base::Init::Init()' 17:28 <+bridge> /usr/local/bin/ld: /usr/include/c++/7/iostream:74: undefined reference to `std::ios_base::Init::~Init()' 17:28 <+bridge> ``` 17:28 <+bridge> any idea? 17:28 <+bridge> stackoverflow is down 😢 17:31 <+bridge> use `g++` to link 17:31 <+bridge> @chairn 17:34 <+bridge> hmm, still lot of undefined reference 17:35 <+bridge> ``` 17:35 <+bridge> g++ -Wall -Wextra -g -c test.cpp -o test.o 17:35 <+bridge> gcc -Wall -Wextra -g -c a.c -o a.o 17:35 <+bridge> g++ test.o a.o -o test /usr/local/lib/libgtest_main.a 17:35 <+bridge> /usr/local/bin/ld: /usr/local/lib/libgtest_main.a(gtest_main.cc.o): in function `main': 17:35 <+bridge> /nobackup/srcs/googletest-release-1.11.0/build/../googletest/src/gtest_main.cc:51: undefined reference to `testing::InitGoogleTest(int*, char**)' 17:35 <+bridge> /usr/local/bin/ld: /usr/local/lib/libgtest_main.a(gtest_main.cc.o): in function `RUN_ALL_TESTS()': 17:35 <+bridge> /nobackup/srcs/googletest-release-1.11.0/build/../googletest/include/gtest/gtest.h:2490: undefined reference to `testing::UnitTest::GetInstance()' 17:35 <+bridge> /usr/local/bin/ld: /nobackup/srcs/googletest-release-1.11.0/build/../googletest/include/gtest/gtest.h:2490: undefined reference to `testing::UnitTest::Run()' 17:35 <+bridge> /usr/local/bin/ld: test.o: in function `first_test_Test::TestBody()': 17:35 <+bridge> /home/ve257822/work/ater/px222/2022-2023/scratch/test.cpp:7: undefined reference to `testing::Message::Message()' 17:35 <+bridge> ``` 17:35 <+bridge> it's weird, it's the same gtest used for ddnet, and it compiles fine there 17:39 <+bridge> okay, weirdly enough, you need both gtest libs. This worked: 17:39 <+bridge> `g++ test.o a.o -o test /usr/local/lib/libgtest_main.a /usr/local/lib/libgtest.a -lrt -ldl -pthread` 17:59 <+bridge> you need to link the `libgtest_main.a` library if you don't provide a main function yourself 19:13 <+bridge> the documentation said to link with this one, not in addition with libgtest.a, kinda wrongly formulated 19:19 <+bridge> I see 21:46 <+bridge> https://twitter.com/theclub386/status/1668687390326546434 21:46 <+bridge> :justatest: 22:02 <+bridge> @ryozuki have u u seen intel rename their cpus? 22:03 <+bridge> ULTRA INTEL 22:21 <+bridge> xd