error: expected ‘)’ before ‘PRIx64’

打印uint64时编译报错

printf("prefix:0x%"PRIx64"\n",ipv6Prefix);

解决办法:添加头文件

#include <inttypes.h>
posted @ 2022-06-13 10:26  liqinglucky  阅读(277)  评论(0编辑  收藏  举报