Top "Linkage" questions

Linkage describes how names can or can not refer to the same entity throughout the entire program or a single unit.

static vs extern "C"/"C++"

What is the difference between a static member function and an extern "C" linkage function ? For instance, when using "makecontext" …

c++ function-pointers static-members linkage extern-c
variable has internal linkage but is not defined

I have this .h file: namespace{ class Invariant{ public: Invariant(z3::expr e,Instruction *i):Expr(e),I(i){ DenseMap&…

c++ linkage
java.lang.LinkageError: loader constraint violation in Grails project

I've built a Grails project with POI (include poi-3.7 and poi-ooxml-3.7). I've added these 2 external libraries to dependencies block in …

grails dependencies linkage run-app
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 …

c++ cmake linkage undefined-symbol
Program statically linked to a library but still needs dll to run

There are things that I don't understand when it comes to linking... I'm writing a program using a 3rd party …

c++ dll linkage
C++ Warning: anonymous type with no linkage used to declare variable

I see this warning message when compiling (gcc 4.6.3, ubuntu) the example: struct { } a; int main() { } warning: anonymous type with no …

c++ g++ compiler-warnings linkage
How can I import dll of a C++ class inside a namespace

I read some documents which gives simple examples on functions compatible with C. __declspec(dllexport) MyFunction(); I'm okey with that. …

c++ dll dllimport explicit linkage
Difference between constexpr and static constexpr global variable

In the C++11 standard, what is the difference between constexpr and static constexpr global variables when defined in a header? …

c++ c++11 constexpr linkage
unresolved external symbol “std::basic_string”

I am trying to compile a project with Maven via the Visual C++ compiler and I keep getting linkage errors …

c++ visual-c++ maven std linkage