Board: [WWIVnet] WWIV Development Subject: Re: Compiling source in Linux From: Recon #1 @126 To: Rushfan #1 @513 Date: Wed Oct 16, 2024 18:19 Ok so the first time I added #include to input.cpp (I don't recall why, I'm tired, but think I saw it below as one of the problem childs..) That produced the below fail. Then I added the same to /home/git/wwiv/sdk/ansi/makeansi.cpp and it compiled without error. I suppose the question will be if I need to go back and remove tcstdint from input.cpp, I can't imagine it hurts being there? Thanks RushFan. [323/525] Building CXX object sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.oFAILED: sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o /usr/bin/c++ -DFMT_HEADER_ONLY=1 -D_DEBUG -I/home/git/wwiv -isystem /home/git/wwiv/_build/vcpkg_installed/x64-linux/include -g -std=gnu++17 -Wall -Wextra -MD -MT sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o -MF sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o.d -o sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o -c /home/git/wwiv/sdk/ansi/makeansi.cpp/home/git/wwiv/sdk/ansi/makeansi.cpp : In function std::string wwiv::sdk::ansi::makeansi(int, int):/home/git/wwiv/sdk/ansi/makeansi.cpp:36:16: error: uint8_t does not name a type 36 | static const uint8_t ansi_color_map[] = {'0', '4', '2', '6', '1', '5', '3', '7'}; | ^~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:22:1: note: uint8_t is defined in header ; did you forget to #include ? 21 | #include +++ |+#include 22 | /home/git/wwiv/sdk/ansi/makeansi.cpp:46:22: error: ansi_color_map was not declared in this scope 46 | addto(&out, 30 + ansi_color_map[attr & 0x07] - '0'); | ^~~~~~~~~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:51:22: error: ansi_color_map was not declared in this scope 51 | M ;:M#;: addto(&out, 30 + ansi_color_map[attr & 0x07] - '0'); | ^~~~~~~~~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:54:22: error: ansi_color_map was not declared in this scope 54 | addto(&out, 40 + ansi_color_map[(attr & 0x70) >> 4] - '0'); | ^~~~~~~~~~~~~~[340/525] Building CXX object sdk/CMakeFiles/sdk.dir/subxtr.cpp.oninja: build stopped: subcommand failed. On Wednesday,October 16, 2024 at 09:51 AM, Rushfan wrote: R> RE: Re: Compiling source in Linux R> BY: Recon #1 @126 R> R> R> RE: Re: Compiling source in Linux R> R> I just logged an issue on this. R> R> R> Try adding this: R> R> #incude R> R> before this line: R> R> #include R> R> Let me know if that fixes it. R> R> I logged the following on github: R> R> https://github.com/wwivbbs/wwiv/issues/1632 R> R> rushfan R> R> .