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
50
votes
3 answers

Prevent "test/expect/etc is not defined" errors when using Jest

Facebook's Jest testing framework is easy to get started with, but the documentation overlooks an annoying aspect: test statements will be highlighted as errors by any editor that tries to warn of undefined symbols, because test, expect, and all…
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404
37
votes
7 answers

Undefined symbols for architecture armv7 when using ZXing library in Xcode 4.5

What I am trying to do Integrate Zxing, QR code reader framework, in my iPhone project. I checked out ZXing sdk from here. I ran the sample project coming with ZXing, named ScanTest, without any issues. But when I try to integrate the library with…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
33
votes
6 answers

Weird undefined symbols of static constants inside a struct/class

Either I'm very tired or something weird is happening that I'm not aware of, because the code below is resulting in undefined symbols for Foo::A and Foo::B when linking. This is minimized as much as I could from a larger project, but shows the…
murrekatt
  • 5,961
  • 5
  • 39
  • 63
27
votes
8 answers

GoogleMapsSDK : Undefined symbols for architecture x86_64

I am trying to install the Google maps SDK and I am running through this error when running: Undefined symbols for architecture x86_64: "_CBAdvertisementDataManufacturerDataKey", referenced from: -[GMSx_PEBeaconScanner…
STo
  • 267
  • 1
  • 3
  • 4
27
votes
3 answers

How do I find where a symbol is defined among static libraries

Suppose you work with a codebase comprising several tools and libraries and you want to port (or resurrect) some component within such codebase but any clue about where symbols lie within the various libs is either lost or will take ages to find out…
a1an
  • 3,526
  • 5
  • 37
  • 57
23
votes
3 answers

Xcode gives Apple Mach-O linker error

I just compiled a project and Xcode returns these two errors which don't seem to be my code's fault. How do I fix them? Undefined symbols for architecture i386: "_vImageBoxConvolve_ARGB8888", referenced from: -[UIImage(Blur)…
kuranes
  • 546
  • 1
  • 6
  • 16
19
votes
4 answers

How do I reliably get Instruments 4.x to symbolicate?

I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator). I've tried just about everything I can think…
Tony Arnold
  • 2,738
  • 1
  • 23
  • 34
18
votes
1 answer

iPhone libxml2 undefined symbols (with gdata, kissxml, touchxml, etc.)

I'm trying to use any one of the libxml based 3rd party XML parsers, but I can't because I think I have a libxml2 problem of some sort I set my other linker flags to -lxml2 and header search paths to /usr/include/libxml2 but I still get a ton of…
dougalg
  • 529
  • 4
  • 14
15
votes
1 answer

What is the "___emutls_get_address" symbol?

Oh, I am a newbie in GCC and MAC and Makefile. Today I intended to build a dynamic lib using MAC OS X and GCC 4.4.2, but when linking the .o files, the compiler complains like this: Undefined symbols: "___emutls_get_address", referenced from: …
JustQieTry
  • 491
  • 1
  • 6
  • 13
13
votes
4 answers

Undefined Symbol in C++ When Loading a Python Shared Library

I have been trying to get a project of mine to run but I have run into trouble. After much debugging I have narrowed down the problem but have no idea how to proceed. Some background, I am using a python script inside C++ code. This is somewhat…
Constantin
  • 16,812
  • 9
  • 34
  • 52
12
votes
7 answers

Unable to open file libtensorflow_io.so caused by undefined symbol

I have a tensorflow 2.2 conda environment setup with python 3.8.2 on Ubuntu. I ran pip install tensorflow-io==0.14.0. When I try to import tensorflow-io as tfio I get the erorr: File…
user3731622
  • 4,844
  • 8
  • 45
  • 84
11
votes
2 answers

c++ undefined symbol when compiling

FIXED: had the method twice in the header file I get the following error when trying to compile my project % make g++ -o p4 testTree.o tree.o node.o check.o Undefined first referenced symbol in…
LucienK
  • 310
  • 2
  • 5
  • 12
9
votes
1 answer

"__aeabi_ldivmod" undefined when compiling kernel module

I'm trying to compile a kernel module (which I wrote myself) on a raspberry pi. I am compiling it in the target environment. I get the following output: make -C /lib/modules/3.12.23-1.20140626git25673c3.rpfr20.armv6hl.bcm2708/build…
harmic
  • 28,606
  • 5
  • 67
  • 91
9
votes
1 answer

Google Conversion Tracking for iOS linker error for architecture armv7

I'm trying to add the Google Conversion Tracking for iOS feature to my iPhone app. The app's base SDK is iOS6 the app's valid architectures is armv7, armv7s the app's iOS deployment targer is 4.3 I'm using the latest xcode 4.5.2 and OSX 10.8.2 The…
alesic
  • 197
  • 2
  • 9
8
votes
2 answers

Symbol(s) not found for architecture x86_64 - Cmake - Mac sierra

Recently I have started a new project in C++. The problem is, when I try to compile it I get a linking error. I spent the whole day today trying to debug it, but I did not really find a good solution anywhere. If someone could help with it it would…
tomooka
  • 1,091
  • 2
  • 9
  • 12
1
2 3
27 28