LIBS += -L[path to lib] -l[name of lib]
Note! that filename of lib: lib[nameOfLib].a and you have to pass only original part -l[nameOfLib]
More Related Contents:
- How can I statically link standard library to my C++ program?
- How to force inclusion of an object file in a static library when linking into executable?
- Undefined symbols for architecture x86_64 – Mavericks (Yosemite, El Capitan…)
- How does the compilation/linking process work?
- Static variables initialisation order
- Difference between static and shared libraries?
- What happens to global and static variables in a shared library when it is dynamically linked?
- Linking static libraries to other static libraries
- “undefined reference to” errors when linking static C library with C++ code
- g++ undefined reference to typeinfo
- GCC C++ Linker errors: Undefined reference to ‘vtable for XXX’, Undefined reference to ‘ClassName::ClassName()’
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- g++ linking order dependency when linking c code to c++ code
- Linking a shared library with another shared lib in linux
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8′ can not be used when making a shared object”
- gcc: undefined reference to
- Where do object file “Version References” come from?
- error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in main.obj
- Linking Libraries in Xcode
- Unresolved external symbol LNK2019
- c++ undefined references with static library
- When should I write the keyword ‘static’ before a non-member function?
- C++ template, linking error [duplicate]
- Replacing ld with gold – any experience?
- error LNK2005: xxx already defined in MSVCRT.lib(MSVCR100.dll) C:\something\LIBCMT.lib(setlocal.obj)
- Undefined reference to `stdscr’ while using ncurses
- library is linked but reference is undefined
- Windows & C++: extern & __declspec(dllimport)
- C++ static variable in .lib does not initialize
- Why is there no multiple definition error when you define a class in a header file?