Undefined symbols for architecture x86_64:
Created by: ckeys
Hi All ,
我尝试用cmake在于capi的EXAMPLE 里面的 sequence.
当我用make的时候,出现了以下的问题:
Scanning dependencies of target sequence
[ 50%] Building C object CMakeFiles/sequence.dir/main.c.o
[100%] Linking C executable sequence
Undefined symbols for architecture x86_64:
"_paddle_arguments_create_none", referenced from:
_main in main.c.o
"_paddle_arguments_destroy", referenced from:
_main in main.c.o
"_paddle_arguments_get_value", referenced from:
_main in main.c.o
"_paddle_arguments_resize", referenced from:
_main in main.c.o
"_paddle_arguments_set_ids", referenced from:
_main in main.c.o
"_paddle_arguments_set_sequence_start_pos", referenced from:
_main in main.c.o
"_paddle_gradient_machine_create_for_inference", referenced from:
_main in main.c.o
"_paddle_gradient_machine_destroy", referenced from:
_main in main.c.o
"_paddle_gradient_machine_forward", referenced from:
_main in main.c.o
"_paddle_gradient_machine_randomize_param", referenced from:
_main in main.c.o
"_paddle_init", referenced from:
_main in main.c.o
"_paddle_ivector_create", referenced from:
_main in main.c.o
"_paddle_ivector_destroy", referenced from:
_main in main.c.o
"_paddle_matrix_create_none", referenced from:
_main in main.c.o
"_paddle_matrix_destroy", referenced from:
_main in main.c.o
"_paddle_matrix_get_row", referenced from:
_main in main.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sequence] Error 1
make[1]: *** [CMakeFiles/sequence.dir/all] Error 2
make: *** [all] Error 2