c-semantics icon indicating copy to clipboard operation
c-semantics copied to clipboard

Linking error occured when compiling iotivity project

Open husbd opened this issue 6 years ago • 0 comments

Linking error produced when compiling iotivity project. The error message is like follows:

......
out/linux/x86_64/release/libconnectivity_abstraction.so: In function `leadvertisement1_skeleton_class_inita3f2ccc6-e65a-11e8-a2e0-bf468d18afb9':
(.text+0x2ef7a): undefined reference to `g_type_check_class_cast'
out/linux/x86_64/release/libconnectivity_abstraction.so: In function `leadvertisement1_skeleton_new':
(.text+0x2f038): undefined reference to `g_object_new'
out/linux/x86_64/release/libconnectivity_abstraction.so: In function `leadvertisement1_skeleton_new':
(.text+0x2f043): undefined reference to `g_type_check_instance_cast'
collect2: error: ld returned 1 exit status
scons: *** [out/linux/x86_64/release/bridging/mpm_client/mpm_sample_client] Error 1
scons: building terminated because of errors.

Run follows to reproduce the error:

git clone https://github.com/shijieg2/iotivity-error-instance
cd iotivity-error-instance
scons

husbd avatar Nov 15 '18 22:11 husbd