make g++ -Wall -std=c++11 -o ano_encoder_test main.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_diagnostic test_diagnostic.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_encoder_only test_encoder_only.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_i2c_raw test_i2c_raw.cpp test_i2c_raw.cpp: In function ‘int main()’: test_i2c_raw.cpp:33:5: error: ‘uint8_t’ was not declared in this scope 33 | uint8_t cmd[2] = {0x00, 0x02}; | ^~~~~~~ test_i2c_raw.cpp:8:1: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 7 | #include +++ |+#include 8 | test_i2c_raw.cpp:34:23: error: ‘cmd’ was not declared in this scope 34 | if (write(i2c_fd, cmd, 2) != 2) { | ^~~ test_i2c_raw.cpp:43:12: error: expected ‘;’ before ‘version_buf’ 43 | uint8_t version_buf[4]; | ^~~~~~~~~~~~ | ; test_i2c_raw.cpp:44:22: error: ‘version_buf’ was not declared in this scope 44 | if (read(i2c_fd, version_buf, 4) != 4) { | ^~~~~~~~~~~ test_i2c_raw.cpp:50:5: error: ‘uint32_t’ was not declared in this scope 50 | uint32_t version = ((uint32_t)version_buf[0] << 24) | ((uint32_t)version_buf[1] << 16) | | ^~~~~~~~ test_i2c_raw.cpp:50:5: note: ‘uint32_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ test_i2c_raw.cpp:52:13: error: expected ‘;’ before ‘product_id’ 52 | uint32_t product_id = (version >> 16) & 0xFFFF; | ^~~~~~~~~~~ | ; test_i2c_raw.cpp:54:49: error: ‘version’ was not declared in this scope 54 | std::cout << "✓ Version: 0x" << std::hex << version << std::dec << std::endl; | ^~~~~~~ test_i2c_raw.cpp:55:38: error: ‘product_id’ was not declared in this scope 55 | std::cout << "✓ Product ID: " << product_id << std::endl; | ^~~~~~~~~~ test_i2c_raw.cpp:65:12: error: expected ‘;’ before ‘enable_cmd’ 65 | uint8_t enable_cmd[3] = {0x11, 0x10, 0x01}; | ^~~~~~~~~~~ | ; test_i2c_raw.cpp:66:23: error: ‘enable_cmd’ was not declared in this scope 66 | if (write(i2c_fd, enable_cmd, 3) != 3) { | ^~~~~~~~~~ test_i2c_raw.cpp:76:12: error: expected ‘;’ before ‘set_pos_cmd’ 76 | uint8_t set_pos_cmd[6] = {0x11, 0x00, 0x00, 0x00, 0x00, 0x00}; | ^~~~~~~~~~~~ | ; test_i2c_raw.cpp:77:23: error: ‘set_pos_cmd’ was not declared in this scope 77 | if (write(i2c_fd, set_pos_cmd, 6) != 6) { | ^~~~~~~~~~~ test_i2c_raw.cpp:96:16: error: expected ‘;’ before ‘read_cmd’ 96 | uint8_t read_cmd[2] = {0x11, 0x00}; | ^~~~~~~~~ | ; test_i2c_raw.cpp:97:27: error: ‘read_cmd’ was not declared in this scope 97 | if (write(i2c_fd, read_cmd, 2) == 2) { | ^~~~~~~~ test_i2c_raw.cpp:100:20: error: expected ‘;’ before ‘pos_buf’ 100 | uint8_t pos_buf[4]; | ^~~~~~~~ | ; test_i2c_raw.cpp:101:30: error: ‘pos_buf’ was not declared in this scope 101 | if (read(i2c_fd, pos_buf, 4) == 4) { | ^~~~~~~ make: *** [Makefile:21: test_i2c_raw] Error 1