以下 gyp 文件有什么问题?
'targets': [
{
'target_name': 'cr',
'type': 'shared_library',
'sources': ['cr.cc'],
'include_dirs': ['.'],
},
],
当我构建这个 gyp 代码时,它会编译,但输出 .so 文件中没有符号。当我这样做的时候
"nm cr.so"
我得到以下最小符号列表。它不包含任何必需的符号。
0000000000001de0 d _DYNAMIC
0000000000001fe8 d _GLOBAL_OFFSET_TABLE_
w _Jv_RegisterClasses
0000000000001dc0 d __CTOR_END__
0000000000001db8 d __CTOR_LIST__
0000000000001dd0 d __DTOR_END__
0000000000001dc8 d __DTOR_LIST__
0000000000000ac0 r __FRAME_END__
0000000000001dd8 d __JCR_END__
0000000000001dd8 d __JCR_LIST__
0000000000002010 A __bss_start
U __ctype_b_loc
w __cxa_finalize
0000000000000a60 t __do_global_ctors_aux
00000000000009b0 t __do_global_dtors_aux
0000000000002008 d __dso_handle
w __gmon_start__
U __printf_chk
U __snprintf_chk
U __sprintf_chk
U __stack_chk_fail
0000000000002010 A _edata
0000000000002020 A _end
0000000000000a98 T _fini
0000000000000950 T _init
U bsearch
0000000000000990 t call_gmon_start
U calloc
0000000000002010 b completed.7382
0000000000002018 b dtor_idx.7384
U fclose
U fopen64
0000000000000a30 t frame_dummy
U fread
U free
U localtime
U log10
U memcmp
U memcpy
U memmove
U memset
U pow
U qsort
U realloc
U strcmp
U strlen
U strncat
U strncmp
U strncpy
U time
在此先感谢您的帮助。