Questions tagged [undefined-symbol]

After all of the input files have been read and all symbol resolution is complete, the link-editor searches the internal symbol table for any symbol references that have not been bound to symbol definitions. These symbol references are referred to as undefined symbols. Undefined symbols can affect the link-edit process according to the type of symbol, together with the type of output file being generated.

Usually the errors related to are mean this:

It means you haven't written a function, or you haven't created a variable, or you haven't linked against the library or object code that contains the missing function or variable.

It means the linker has looked through all the compiled code you told it to, and it still can't find what it's looking for.


Source0 and Source1

417 questions
2
votes
0 answers

SWIG causing `symbol lookup issue` in perl package

I am trying to install an old perl module, called BioMol, where SWIG has been used to interface C with perl. It is currently installed on an 'old' machine and we want to install it on a newer machine. I am able to build the package and install it…
2
votes
2 answers

std::to_chars compile but not linking on MacOS / clang

I have problem compiling a project under MacOS with clang. I did "pinpoint" the problem inside charconv header: #include #include #include int main(){ std::array buffer; auto[p, ec] =…
Nick
  • 9,962
  • 4
  • 42
  • 80
2
votes
3 answers

Undefined symbols for architecture arm64 in Unity AR Foundation Xcode project

I am simply building the default sample project Unity provided for AR Foundation: https://github.com/Unity-Technologies/arfoundation-samples I'm using Unity 2019.1.5f1 Xcode 10.2.1 I don't change anything in the Unity project. It's targeting iOS so…
Kourosh
  • 608
  • 2
  • 14
  • 34
2
votes
0 answers

AIX/xlclang++: thread_local variables give linker error: undefined symbols

I am trying to build a shared object (.so) on AIX, using the IBM xlclang++ compiler (v16.1). The .so uses C++11 concurrency, and I have defined some global variables as thread_local. The linker gives Undefined symbol errors for those variables (and…
2
votes
1 answer

How to embed a static library into a shared library?

On linux I am trying to create a shared library, libbar.so, that embeds a commercial static library (licensing is fine). The commercial library has 4 versions: libfoo-seq.a, libfoo-mt.a, libfoo-seq.so, and libfoo-mt.so (they all provide the same…
2
votes
0 answers

How do I fix the ImportError: Undefined Symbol from the sklearn package in python 3.5 on raspberry pi

On my raspberry pi I created a virtual environment with the virtualenv package. Using pip3 I installed the following python packages for python…
2
votes
1 answer

`dlopen`'ing a .so that contains symbols results in undefined symbols

Problem To be concrete, I am using cblas for my application. I create a foo.so that uses cblas as a subroutine, and I dlopen('foo.so', RTLD_LAZY). This is the flags I use to compile(redacted some -I flags): g++-8 -std=c++17 -shared -O3 -xc++ …
OneRaynyDay
  • 3,658
  • 2
  • 23
  • 56
2
votes
1 answer

Undefined symbol for HDF5 when using g++

I can't seem to get the c++ bindings for the HDF5 library to compile when using gcc. The test program is the example found at: https://support.hdfgroup.org/ftp/HDF5/current/src/unpacked/c++/examples/h5tutr_crtdat.cpp My cmake file reads as…
user7119460
  • 1,451
  • 10
  • 20
2
votes
1 answer

JNI Bindings - Undefined symbol: gcj_personality_v0

I'm trying to convert a valid C JNI binding to C++ because I want to link to C++ source (open source implementation of an image processing algorithm) from some Java code. I got everything working in C, this includes the Java class, the C version of…
chardson
  • 143
  • 2
  • 7
2
votes
1 answer

Why does making functions "static" cause my program to have Undefined Symbols?

I'm sure Undefined Symbols/References feels like a topic that's been beaten to death here, but I've got a weird issue. See my previous question for some background info. I was working on a small program, and it was compiling fine, no warnings or…
Dovahkiin
  • 946
  • 14
  • 25
2
votes
1 answer

LLDB symbol dumps

I'm trying to understand the following symbol dump from the LLDB shell (lldb) target create --no-dependents '9.0/Symbols/Library/Application Support/WatchKit/WK' Current executable set to '9.0/Symbols/Library/Application Support/WatchKit/WK'…
2
votes
0 answers

C compiler gcc gives linker command failed error

I am trying to use two functions from two different files. I put these three files in the same folder. The compiler gives an error on these two functions that I am linking to. Here is the main file that I am running. #include #include…
Liu Hantao
  • 620
  • 1
  • 9
  • 19
2
votes
1 answer

"ImportError" / "undefined symbol: PyFPE_jbuf" with pymssql

I'm currently trying to launch a Lambda as a Zappa (Python3.6). After deploying the app / configuring everything on the AWS-side, I ran the following command to test the app in my local environment, zappa invoke production script.main And got this…
Samuel Ryan
  • 21
  • 1
  • 4
2
votes
1 answer

Error: :0: error: (499) undefined symbol:

I'm trying to use a globalVar.h to get my main.c cleaner and tidied up. But I get many errors that me and my colleagues can't understand or solve. Would some please be so kind and give me a hint what I could have done wrong? I'm using MPLAB X IDE…
MHein
  • 21
  • 1
  • 3
2
votes
1 answer

Tensorboard error after installing via pip

I have recently attempted to install tensorboard via pip as detailed in the README.md. The installation was deemed successful however when I try to run tensorboard after the installation, I keep on receiving an import/undefined symbol error as seen…
James
  • 1,260
  • 13
  • 25