ios - Undefined symbols for architecture x86_64 with C files -
i have .c , .h file has added in swift project. have created bridging header , included .h file. i'm getting apple mach-o linker error follows:
undefined symbols architecture x86_64: "_smooth", referenced from: __rep_count_data_passing_2 in rep.o "_tot_samples_rep", referenced from: __rep_count_data_passing_2 in rep.o "_oldavg_rep", referenced from: __rep_count_data_passing_2 in rep.o "_newavg_rep", referenced from: __rep_count_data_passing_2 in rep.o "_newmin_rep", referenced from: __rep_count_data_passing_2 in rep.o "_count_idle_rep", referenced from: __rep_count_data_passing_2 in rep.o "_rep_count_var", referenced from: __rep_count_data_passing_2 in rep.o "_step_cal_incre_rep", referenced from: __rep_count_data_passing_2 in rep.o "_avgthresh_rep", referenced from: __rep_count_data_passing_2 in rep.o "_avg_rssdat_rep", referenced from: __rep_count_data_passing_2 in rep.o "_newmax_rep", referenced from: __rep_count_data_passing_2 in rep.o "_minavg_rep", referenced from: __rep_count_data_passing_2 in rep.o _isstep_rep in rep.o "_maxavg_rep", referenced from: __rep_count_data_passing_2 in rep.o _isstep_rep in rep.o "_accel_dat_rep", referenced from: __rep_count_data_passing_2 in rep.o "_stepflag_rep", referenced from: _isstep_rep in rep.o "_i", referenced from: __rep_count_data_passing_2 in rep.o (maybe meant: __tivc5ctest11appdelegate6windowgsqcso8uiwindow_i) "_cycle_count_rep", referenced from: __rep_count_data_passing_2 in rep.o "_avglen_rep", referenced from: __rep_count_data_passing_2 in rep.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)
what issue , how fix this? thank in advance!
Comments
Post a Comment