#include "x2struct/x2struct.hpp"
....
error: ‘x_str_to_struct’ was not declared in this scope x_str_to_struct(*obj, val);
这个问题不要怀疑是否因为没有引用头文件导致的问题了。
这个是要转换的结构体里面没有添加
XTOSTRUCT 导致。
x2struct 已经改名 xpack了
#include "x2struct/x2struct.hpp"
....
error: ‘x_str_to_struct’ was not declared in this scope x_str_to_struct(*obj, val);
这个问题不要怀疑是否因为没有引用头文件导致的问题了。
这个是要转换的结构体里面没有添加
XTOSTRUCT 导致。
x2struct 已经改名 xpack了