help > multiple definition problem when compiling plugins
Showing 1-2 of 2 posts
Dec 11, 2022 03:12 PM | ruichen gao
multiple definition problem when compiling plugins
some problems are as follows:
tip_main.cpp: 在函数'double marker_dist(MyMarker, MyMarker)'中:
tip_main.cpp:3720:8: 错误:'double marker_dist(MyMarker, MyMarker)' 重定义
double marker_dist(MyMarker a, MyMarker b)
^
tip_main.cpp:27:8: 错误:'double marker_dist(MyMarker, MyMarker)'已在此定义过
double marker_dist(MyMarker a, MyMarker b)
^
tip_main.cpp: 在函数'MyMarker over_traced_node(QPair, double)'中:
tip_main.cpp:3725:10: 错误:'MyMarker over_traced_node(QPair, double)' 重定义
MyMarker over_traced_node(QPair< MyMarker,MyMarker> input_xyz,double over_dist){
^
tip_main.cpp:32:10: 错误:'MyMarker over_traced_node(QPair, double)'已在此定义过
MyMarker over_traced_node(QPair< MyMarker,MyMarker> input_xyz,double over_dist){
^
tip_main.cpp: 在函数'MyMarker off_signal_node(QPair, int)'中:
tip_main.cpp:3748:10: 错误:'MyMarker off_signal_node(QPair, int)' 重定义
MyMarker off_signal_node(QPair< MyMarker,MyMarker> input_xyz,int over_dist){
^
tip_main.cpp:55:10: 错误:'MyMarker off_signal_node(QPair, int)'已在此定义过
MyMarker off_signal_node(QPair< MyMarker,MyMarker> input_xyz,int over_dist){
^
tip_main.cpp: 在函数'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'中:
tip_main.cpp:3776:6: 错误:'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)' 重定义
void get_undertraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp:83:6: 错误:'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'已在此定义过
void get_undertraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp: 在函数'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'中:
tip_main.cpp:3885:6: 错误:'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)' 重定义
void get_overtraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp:192:6: 错误:'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'已在此定义过
void get_overtraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
tip_main.cpp: 在函数'double marker_dist(MyMarker, MyMarker)'中:
tip_main.cpp:3720:8: 错误:'double marker_dist(MyMarker, MyMarker)' 重定义
double marker_dist(MyMarker a, MyMarker b)
^
tip_main.cpp:27:8: 错误:'double marker_dist(MyMarker, MyMarker)'已在此定义过
double marker_dist(MyMarker a, MyMarker b)
^
tip_main.cpp: 在函数'MyMarker over_traced_node(QPair, double)'中:
tip_main.cpp:3725:10: 错误:'MyMarker over_traced_node(QPair, double)' 重定义
MyMarker over_traced_node(QPair< MyMarker,MyMarker> input_xyz,double over_dist){
^
tip_main.cpp:32:10: 错误:'MyMarker over_traced_node(QPair, double)'已在此定义过
MyMarker over_traced_node(QPair< MyMarker,MyMarker> input_xyz,double over_dist){
^
tip_main.cpp: 在函数'MyMarker off_signal_node(QPair, int)'中:
tip_main.cpp:3748:10: 错误:'MyMarker off_signal_node(QPair, int)' 重定义
MyMarker off_signal_node(QPair< MyMarker,MyMarker> input_xyz,int over_dist){
^
tip_main.cpp:55:10: 错误:'MyMarker off_signal_node(QPair, int)'已在此定义过
MyMarker off_signal_node(QPair< MyMarker,MyMarker> input_xyz,int over_dist){
^
tip_main.cpp: 在函数'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'中:
tip_main.cpp:3776:6: 错误:'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)' 重定义
void get_undertraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp:83:6: 错误:'void get_undertraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'已在此定义过
void get_undertraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp: 在函数'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'中:
tip_main.cpp:3885:6: 错误:'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)' 重定义
void get_overtraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
^
tip_main.cpp:192:6: 错误:'void get_overtraced_sample(const V3DPluginArgList&, V3DPluginArgList&, V3DPluginCallback2&)'已在此定义过
void get_overtraced_sample(const V3DPluginArgList & input, V3DPluginArgList & output, V3DPluginCallback2 & callback)
Dec 13, 2022 06:12 AM | Lingli Zhang
RE: multiple definition problem when compiling plugins
Hello!
Seemingly the problem was because of redefinition. Normally you can remove the definitions/ or change another name of the definition in tip_main.cpp file to solve this problem.
The plugin you compiled was in Vaa3D or you wrote?
Best Wishes.
Lingli
Seemingly the problem was because of redefinition. Normally you can remove the definitions/ or change another name of the definition in tip_main.cpp file to solve this problem.
The plugin you compiled was in Vaa3D or you wrote?
Best Wishes.
Lingli