Languages

Menu
Sites
Language
Adding external libraries, getting link error

I tried to add the created shared library in 

properties->c/c++ build->Settings>Tools settings _C++ Linker-> Libraries

also tried by adding the library in 

properties->c/c++ General->Paths and Symbols-> Libraries

Getting below error.
Please let me know what is the exact procedure to add the external libraries to native application development.
I have checked some previous answer's on same error and i am not able to understand 100%. If possible, please add the screen shot or share a document or video link to add extrnal libraries. Thank you.

 

 

 

FAILED: clang++.exe -o basicui src/basicui.o   -lD:\TizenWS\SharedLibrary\Debug -l"D:\TizenWS\SharedLibrary\Debug\libsharedlibrary.so" -L"../lib" -L"D:\TizenWS\SharedLibrary\Debug" -target i586-tizen-linux-gnueabi -gcc-toolchain "C:\tizen-studio\tools\smart-build-interface/../i586-linux-gnueabi-gcc-6.2/" -ccc-gcc-name i586-linux-gnueabi-g++ -march=i586 -Xlinker --as-needed  -pie -lpthread --sysroot="C:/tizen-studio/tools/smart-build-interface/../../platforms/tizen-5.5/wearable/rootstraps/wearable-5.5-emulator.core" -Xlinker --version-script="../.exportMap" -L"C:/tizen-studio/tools/smart-build-interface/../../platforms/tizen-5.5/wearable/rootstraps/wearable-5.5-emulator.core/usr/lib" -laccounts-svc -lanl -lappcore-agent -lappcore-watch -lasp -lbadge -lbase-utils-i18n -lBrokenLocale -lbundle -lcairo -lcalendar-service2 -lcapi-appfw-alarm -lcapi-appfw-app-common -lcapi-appfw-app-control -lcapi-appfw-app-control-uri -lcapi-appfw-application -lcapi-appfw-app-manager -lcapi-appfw-component-manager -lcapi-appfw-event -lcapi-appfw-job-scheduler -lcapi-appfw-package-manager -lcapi-appfw-preference -lcapi-appfw-widget-application -lcapi-base-common -lcapi-content-media-content -lcapi-content-mime-type -lcapi-context-motion -lcapi-context -lcapi-location-manager -lcapi-maps-service -lcapi-media-audio-io -lcapi-media-camera -lcapi-media-codec -lcapi-media-controller -lcapi-mediademuxer -lcapi-media-image-util -lcapi-media-metadata-editor -lcapi-media-metadata-extractor -lcapi-mediamuxer -lcapi-media-player -lcapi-media-radio -lcapi-media-recorder -lcapi-media-sound-manager -lcapi-media-sound-pool -lcapi-media-streamer -lcapi-media-streamrecorder -lcapi-media-thumbnail-util -lcapi-media-tone-player -lcapi-media-tool -lcapi-media-vision -lcapi-media-wav-player -lcapi-messaging-email -lcapi-messaging-messages -lcapi-network-bluetooth -lcapi-network-connection -lcapi-network-http -lcapi-network-inm -lcapi-network-nfc -lcapi-network-smartcard -lcapi-network-softap -lcapi-network-stc -lcapi-network-wifi-manager -lcapi-nnstreamer -lcapi-privacy-privilege-manager -lcapi-system-battery-monitor -lcapi-system-device -lcapi-system-info -lcapi-system-media-key -lcapi-system-runtime-info -lcapi-system-sensor -lcapi-system-system-settings -lcapi-telephony -lcapi-ui-autofill-common -lcapi-ui-autofill-manager -lcapi-ui-autofill-service -lcapi-ui-autofill -lcapi-ui-efl-util -lcapi-ui-inputmethod-manager -lcapi-ui-inputmethod -lcapi-ui-sticker-consumer -lcapi-ui-sticker-provider -lchromium-ewk -lcidn -lcomponent-based-application -lcomponent-based-core-base -lcontacts-service2 -lcore-sync-client -lcrypto -lcrypt -lc -lcsr-client -lcurl -ldali-adaptor -ldali-core -ldali-toolkit -ldata-control -ldevice-certificate-manager -ldlog -ldl -ldpm -lecore_buffer -lecore_con -lecore_evas -lecore_file -lecore_imf_evas -lecore_imf -lecore_input_evas -lecore_input -lecore_ipc -lecore -ledje -leet -lefl-extension -lefreet_mime -lefreet -lefreet_trash -leina -leio -lelementary -lembryo -leom -leo -lethumb_client -lethumb -levas -lexif -lfeedback -lfido-client -lfontconfig -lfreetype -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lharfbuzz-icu -lharfbuzz -licudata -licui18n -licuio -licutest -licutu -licuuc -liotcon -ljson-glib-1.0 -lkey-manager-client -lma -lmessage-port -lminicontrol-provider -lminicontrol-viewer -lminizip -lm -lnotification-ex -lnotification -lnsd-dns-sd -lnsd-ssdp -lnsl -lnss_compat -lnss_dns -lnss_files -lnss_hesiod -lnss_nisplus -lnss_nis -loauth2 -loauth -lopenal -lphonenumber-utils -lprivilege-info -lpthread -lpush -lresolv -lrpc-port -lrt -lsqlite3 -lssl -lstorage -lstt_engine -lstt -ltbm -lteec -lthread_db -lttrace -ltts_engine -ltts -ltzsh_common -ltzsh_quickpanel -ltzsh_softkey -lutil -lvc-elm -lvc_engine -lvc_manager -lvc -lwatchface-complication-provider -lwatchface-complication -lwidget_service -lwidget_viewer_dali -lwidget_viewer_evas -lxml2 -lyaca -lz -Werror-implicit-function-declaration 
c:/tizen-studio/tools/i586-linux-gnueabi-gcc-6.2/bin/../lib/gcc/i586-tizen-linux-gnueabi/6.2.1/../../../../i586-tizen-linux-gnueabi/bin/ld.exe: cannot find -lD:\TizenWS\SharedLibrary\Debug

c:/tizen-studio/tools/i586-linux-gnueabi-gcc-6.2/bin/../lib/gcc/i586-tizen-linux-gnueabi/6.2.1/../../../../i586-tizen-linux-gnueabi/bin/ld.exe: cannot find -lD:\TizenWS\SharedLibrary\Debug\libsharedlibrary.so

collect2.exe: error: ld returned 1 exit status

clang++.exe: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Responses

2 Replies
Dev L

Hi, I am getting same error. have you find any solution for that ? please help. i am stuck in this error.