Getting undefined reference error but nm shows symbol present
问题 I am building a large application using libkml. I am using the cmake port of libkml from here: https://github.com/rashadkm/libkml I am getting a stranged undefined reference to symbol error even thought the symbol appears to be referenced and defined. This is the make command: /usr/bin/c++ -fPIC -Werror=return-type -Werror=return-type -Wall -Werror=parentheses -Werror=uninitialized -Werror=missing-braces -fPIC -O0 -Wall -fPIC -fvisibility=hidden -fno-strict-aliasing -Wno-long-long -m64 -g -D