We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make com
git clone mkdir build make com
报错:
g++ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp -o /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/build/converter /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:16:44: 错误:‘uint64_t’未声明 16 | int getFileCount(char* filePath, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:17:30: 错误:‘uint64_t’未声明 17 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:17:46: 错误:‘uint64_t’未声明 17 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:17:72: 错误:‘uint64_t’未声明 17 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:18:30: 错误:‘uint64_t’未声明 18 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:18:46: 错误:‘uint64_t’未声明 18 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:18:72: 错误:‘uint64_t’未声明 18 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width); | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:20:1: 错误:‘uint64_t’不是一个类型名 20 | uint64_t Count = 0; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:12:1: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 11 | #include <getopt.h> +++ |+#include <cstdint> 12 | /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:21:1: 错误:‘uint64_t’不是一个类型名 21 | uint64_t in_w = 0; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:21:1: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:22:1: 错误:‘uint64_t’不是一个类型名 22 | uint64_t out_w = 0; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:22:1: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp: In function ‘int parse_args(int, char**)’: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:41:23: 错误:‘in_w’在此作用域中尚未声明 41 | case 'a': in_w = atoi(optarg); break; | ^~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:42:23: 错误:‘out_w’在此作用域中尚未声明 42 | case 'b': out_w = atoi(optarg); break; | ^~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp: In function ‘int main(int, char**, char**)’: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:52:3: 错误:‘Count’在此作用域中尚未声明 52 | Count = getFileCount(input_path, input_isbin, in_w); | ^~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:52:49: 错误:‘in_w’在此作用域中尚未声明 52 | Count = getFileCount(input_path, input_isbin, in_w); | ^~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:53:3: 错误:‘uint64_t’在此作用域中尚未声明 53 | uint64_t *ptr = new uint64_t[Count]; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:53:3: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:53:13: 错误:‘ptr’在此作用域中尚未声明 53 | uint64_t *ptr = new uint64_t[Count]; | ^~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:53:23: 错误:‘uint64_t’不是一个类型名 53 | uint64_t *ptr = new uint64_t[Count]; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:53:23: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:55:51: 错误:‘out_w’在此作用域中尚未声明 55 | saveFile(output_path, ptr, Count, output_isbin, out_w); | ^~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/main.cpp:57:3: 错误:‘delete’的参数类型应为指针而非‘<类型错误>’ 57 | delete ptr; | ^~~~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:15:14: 错误:‘uint64_t’在此作用域中尚未声明 15 | int itoa_bin(uint64_t data, char *bin){ | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:12:1: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 11 | #include <cstring> +++ |+#include <cstdint> 12 | /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:15:29: 错误:expected primary-expression before ‘char’ 15 | int itoa_bin(uint64_t data, char *bin){ | ^~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:15:38: 错误:expression list treated as compound expression in initializer [-fpermissive] 15 | int itoa_bin(uint64_t data, char *bin){ | ^ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:61:44: 错误:‘uint64_t’未声明 61 | int getFileCount(char* filePath, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp: In function ‘int getFileCount(char*, bool, int)’: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:63:3: 错误:‘uint64_t’在此作用域中尚未声明 63 | uint64_t fileSize = -1; | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:63:3: 附注:‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp: 在全局域: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:72:29: 错误:‘uint64_t’未声明 72 | int readBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:72:45: 错误:‘uint64_t’未声明 72 | int readBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:72:61: 错误:‘uint64_t’未声明 72 | int readBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:83:29: 错误:‘uint64_t’未声明 83 | int readTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:83:45: 错误:‘uint64_t’未声明 83 | int readTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:83:61: 错误:‘uint64_t’未声明 83 | int readTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:111:30: 错误:‘uint64_t’未声明 111 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:111:46: 错误:‘uint64_t’未声明 111 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:111:72: 错误:‘uint64_t’未声明 111 | int readFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:116:29: 错误:‘uint64_t’未声明 116 | int saveBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:116:45: 错误:‘uint64_t’未声明 116 | int saveBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:116:61: 错误:‘uint64_t’未声明 116 | int saveBin(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:126:29: 错误:‘uint64_t’未声明 126 | int saveTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:126:45: 错误:‘uint64_t’未声明 126 | int saveTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:126:61: 错误:‘uint64_t’未声明 126 | int saveTxt(char* filePath, uint64_t * ptr, uint64_t count, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp: In function ‘int saveTxt(char*, int*, int, int)’: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:134:13: 错误:‘itoa_bin’ cannot be used as a function 134 | itoa_bin(*(ptr+idx),frameChar64bit); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp: 在全局域: /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:146:30: 错误:‘uint64_t’未声明 146 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:146:46: 错误:‘uint64_t’未声明 146 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ /home/kafcoppelia/WORK/PAICORE/PAICORE-dev/revert/bin_txt_coe_converter/source/utils.cpp:146:72: 错误:‘uint64_t’未声明 146 | int saveFile(char* filePath, uint64_t * ptr, uint64_t count, bool bin, uint64_t width) | ^~~~~~~~ make: *** [Makefile:13:com] 错误 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
报错:
The text was updated successfully, but these errors were encountered: