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

Ffmpeg compilation fails due to undefined symbol _x264_encoder_open_112 for architecture x86_64

I am compiling ffmpeg on Snow Leopard from source. Using Macport is not an option since I have some custom modification in ffmpeg. The make commands are: $ ./configure --enable-gpl --enable-libmp3lame --enable-static \ --disable-shared…
S B
  • 8,134
  • 10
  • 54
  • 108
4
votes
0 answers

Clang undefined behavior sanitizer in shared library (JNI): "undefined symbol: __ubsan_vptr_type_cache"

Our clang++ build of executables with undefined behavior sanitizer works fine for executables when compiled as follows: ccache clang++ -Qunused-arguments -fcolor-diagnostics -c -MMD -MP -std=c++11 --O1 -g3 -fPIC -fsanitize=address,undefined…
Pascal Kesseli
  • 1,620
  • 1
  • 21
  • 37
4
votes
2 answers

C linking error (with tcc)

I'm trying to run the example from tiny cc (tcc-0.9.26-win64-bin.zip) called libtcc_test.c. I've copied libtcc.h from libtcc into include and libtcc.def into lib. Then I ran tcc ./examples/libtcc_test.c and got a linking error :/ tcc: error:…
Maciej Kozieja
  • 1,812
  • 1
  • 13
  • 32
4
votes
1 answer

Doxygen: How can I document macros that are not #defined?

I am trying to use Doxygen to document the functions of some option-controlling macros symbols, for example: //! \def BOOST_SOMEFEATURE /*! \brief Option macro that is not normally defined * but can optionally be defined by consumers to…
Paul A. Bristow
  • 191
  • 4
  • 8
4
votes
2 answers

MobileVLCKit for iOS fails to build (Both pod and Framework)

When building a project that includes MobileVLCKit the build fails with 76-100 errors from "Undefined symbols for architecture arm64:" The first few for example: "std::runtime_error::runtime_error(std::string const&)", referenced from: …
Mark B
  • 141
  • 7
4
votes
2 answers

In my iOS app undefined symbols for architecture x86_64

Trying to get my app ready for arm64 and updating all my pods. I updated all the pods but getting this error so app will not compile. Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AFHTTPClient", referenced from: …
jdog
  • 10,351
  • 29
  • 90
  • 165
4
votes
1 answer

import error: ephem/_libastro.so undefined symbol: PyUnicodeUCS2_AsUTF8String

I just successfully installed PyEphem using pip in a pyenv. However, on import I receive: ImportError: /python2.7/site-packages/ephem/_libastro.so: undefined symbol: PyUnicodeUCS2_AsUTF8String In looking around I've seen it mentioned that some…
PilotStew
  • 65
  • 2
  • 6
4
votes
1 answer

Error with swig: undefined symbol: _ZN7hosters11hostersLink7getLinkEi

I'm trying to make a python binding for the this library: http://code.google.com/p/hosterslib/. I'm using swig, heres is the code: %module pyhosters %{ #include "hosters/hosters.hpp" %} %include "hosters/hosters.hpp" I run swig…
user301649
4
votes
1 answer

What Is The Role of Implicit Function Declaration in c/c++, if Any?

While programming, it is common to forget to include a header and thereby call an undefined function. Calling a function that is not defined in the caller's namespace is not, according to gcc or clang with default options, a compile-time error.…
seewalker
  • 1,123
  • 10
  • 18
4
votes
3 answers

Kernel module with multiple files - unknown symbol

Hello stackoverflowers :) For the last several hours I've been trying to compile+load a multiple file module. The compilation emits a strange warning and the module fails to load. Here are the module, Makefile, compilation output and…
Bugum Burum
  • 171
  • 2
  • 8
4
votes
1 answer

Receive any notify when call undefined function in lua

In C++ code: class CWindowUI { public CWindowUI(const char* title,int width,int height); ..... }; static int CreateWindow(lua_State *l) { int width,height; char *title; CWindowUI **winp, *win; name = (char *)…
tfzxyinhao
  • 334
  • 5
  • 19
3
votes
2 answers

undefined symbols Undefined symbols for architecture x86_64: "_kCFAllocatorDefault"

I am trying to compile some stuff under mac os 10.7 in eclipse and the build dies on: Undefined symbols for architecture x86_64: "_kCFAllocatorDefault", referenced from: ___GLeeGetProcAddress in GLee.o "_CFURLCreateWithFileSystemPath",…
kosta5
  • 1,129
  • 3
  • 14
  • 36
3
votes
1 answer

What causes the "Undefined symbols for architecture x86_64" Build Error?

this is an excerpt of a program I've been working on. I suspect that the problem may be shomehow caused by this member of the class Player: std::vector > lBidding The code results in the follow build error: g++ -o ./Debug/fudge…
user1269612
3
votes
2 answers

Undefined symbols for typedef and template?

This seems so simple, but I cannot figure out what's wrong. I'm implementing the C++ vector class (only for int, not a template), and functions with iterator templates or typedefs are giving me these errors on compile: Undefined symbols: "void…
Brian
  • 1,028
  • 12
  • 20
3
votes
1 answer

swig error: Undefined Symbol

I'm having trouble with swig and to me it looks like it is saying that one of the data members of my code is an undefined symbol. I have found answers online on how to fix functions but this is puzzling me. My error is: Traceback (most recent call…
Justin Kern
  • 31
  • 1
  • 2