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
3
votes
1 answer

Undefined symbols compiling GTK+ 3 with ATK 2.2.0 on CentOS 6

I'm trying to compile GTK+ 3 with ATK 2.2.0 on CentOS, but am getting an error with atk_window_get_type: make[4]: Entering directory `/home/mms/Source/gtk+/gtk' GISCAN Gtk-3.0.gir /home/mms/Source/gtk+/gtk/tmp-introspectRXT5FI/.libs/lt-Gtk-3.0:…
3
votes
1 answer

Open CV ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

I have installed OpenCV and when trying to import cv2 in python, I get the following error. The import was working fine until I installed/un-installed and re-installed tensor flow. OpenCV has been installed in a conda environment using cmake. Any…
user3616977
  • 527
  • 2
  • 5
  • 14
3
votes
1 answer

NotFoundError when trying to import tensorflow-quantumm

When I try to run import tensorflow_quantum I get the following error: 2021-08-19 11:03:01.024791: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot…
3
votes
0 answers

Undefined symbol in Clang-compiled Python extension using OpenMP

I am facing a weird problem when compiling a Python extension featuring OpenMP with Clang. Minimal Example I managed to boil down my actual problem to the following code: The Python extension could not be much simpler, while still featuring…
Wrzlprmft
  • 4,234
  • 1
  • 28
  • 54
3
votes
3 answers

D and SDL - functions undefined

I've got this very simple D program (pk.d): import std.stdio; import SDL; int main(string[] args) { writefln("Hello world"); if (SDL_Init( SDL_INIT_VIDEO ) < 0) { writefln("Unable to init SDL"); return 1; } return…
Ponkadoodle
  • 5,777
  • 5
  • 38
  • 62
3
votes
1 answer

How does cmake add_library decide on visibility for symbols?

I am building a shared library with the CMake add_library command as follows: add_library(mylibname OPTION SHARED SOURCES ${source_files} HEADERS ${header_files}) When I inspect this library with 'nm', I find that some symbols are marked globally…
Ben Farmer
  • 2,387
  • 1
  • 25
  • 44
3
votes
1 answer

Remove dead code before linking

In a project that consists of several statically linked object files, I am replacing one of them with a separate implementation. I would like to test my code even before I have implemented every symbol which the replaced object file provided, so I…
Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139
3
votes
3 answers

C: Handle undefined symbols in shared object

I've struggled with dlopen and undefined symbols. What I have and tried so far: libraryA.a with function functionA() libraryA.so with function functionA() libraryB.so which is using functionA() an executable which loads libraryB.so with dlopen. What…
Elec
  • 53
  • 1
  • 7
3
votes
0 answers

In Qt, accessing extern variable from plugin, that was defined in main application

It gives undefined symbol error when accessing the extern variable from plugin I have header file globals.h #ifndef GLOBALS_H #define GLOBALS_H extern int globalNumber; #endif // GLOBALS_H which is included in both main application and plugin; in…
3
votes
0 answers

Undefined symbols for architecture while using ELCImagePicker

I am using ELCImagePicker library to multi selection of images but getting below error.How should i solve? Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ELCImagePickerController", referenced from: type metadata accessor for…
3
votes
0 answers

xmppframework: "Undefined symbols for architecture x86_64"

I am developing a live chat software for iOS using xmppframework. My xCode version is 6.4(6e35b). I did import the xmpp folder exactly follow the Readme document. However, it gives me error like undefined symbols for x86_64 when I tried to use this…
AdamLian
  • 31
  • 4
3
votes
0 answers

symbol lookup error on C dynamic library

I've a problem that drive me crazy. I've an Ubuntu developer machine. I've downloaded a toolkit and I've included it into my C project (eclipse). Well, if I build the project using eclipse on a centos VM the resultant application, copied to the…
3
votes
4 answers

Getting error when adding Segment iOS framework manually

I'm trying to add segmentio iOS framework manually in my app. When I build the project, its ended with following error, "Undefined symbols for architecture i386" and logs. Undefined symbols for architecture i386: "_OBJC_CLASS_$_Amplitude",…
Hemang
  • 26,840
  • 19
  • 119
  • 186
3
votes
1 answer

Undefined symbol when loading Apache2 mod_xml2enc

I am so frustrated installing reverse-proxy-related modules to Apache2 HTTP server on a CentOS 5 box. Since it's an old version of Apache2 server, I had to compile the modules from source using Apache tool 'apxs'. I got no warnings or errors…
Will Cheng
  • 199
  • 1
  • 7
3
votes
5 answers

Undefined symbols for architecture x86_64 "_SDL_Init"

Every time I try and compile a program that uses SDL, it gives me a "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf "/Applications/Xcode.app/Contents/Developer/usr/bin/make" …
TheCo
  • 51
  • 1
  • 3