Undefined reference to symbol ' _znk11genicam_3_016genericexception17getsourcefilenameev '

Source: Internet
Author: User

Today, when compiling the source code for Dalsa two times, the following error occurred:

/USR/BIN/LD:./out/camera.o:undefined reference to symbol ' _znk11genicam_3_016genericexception17getsourcefilenameev ‘
Opt/genicam_v3_0/bin/linux64_x64/libgcbase_gcc421_v3_0.so:error adding symbols:dso missing from command line
Collect2:error:ld returned 1 exit status
The required Kudu (LIBGEVAPI) was added to the makefile, and the result is the error.

Libgcbase_gcc421_v3_0.so problem solved by adding library.

The following information is added in makefile:

ifndef ARCH ARCH: = $ (Shell uname-m | sed-e s/i.86/i386/-e s/x86_64/x86_64/) endif
ifeq ($ (ARCH), x86_64) archname=x86_64arch_genicam_bin=linux64_x64arch_options=-dx86_64-d_reentrantarch_gccver=421Elsearchname=i386arch_genicam_bin=linux32_i86arch_options=-d__i386__-d_reentrantarch_gccver=421endif

## Arch Dependent GenICam Library specification#Genicam_root_v3_0=/opt/genicam_v3_0Genicam_path_version=v3_0genicam_path:=$ (genicam_root_v3_0) genicam_libs=-l$ (genicam_path)/bin/$ (arch_genicam_bin)\ -LGENAPI_GCC$ (arch_gccver)_$ (genicam_path_version)\ -LGCBASE_GCC$ (arch_gccver)_$ (genicam_path_version) Ldlibs + =$ (genicam_libs)INCLUDE+=-i$ (Genicam_path)/bin/$ (arch_genicam_bin)

Undefined reference to symbol ' _znk11genicam_3_016genericexception17getsourcefilenameev '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.