linker-errors

OpenPose linking error on std::thread

▼魔方 西西 提交于 2021-02-20 04:21:25
问题 So trying to build OpenPose from source, and was running into a linking problem. Current environment is Ubuntu 16.04.4. OpenCV version is 3.3.1. GCC version is 5.4.0. [ 87%] Built target openpose [ 87%] Linking CXX executable 1_extract_from_image.bin [ 87%] Linking CXX executable openpose.bin [ 87%] Linking CXX executable 3_user_input_processing_and_output.bin [ 87%] Linking CXX executable 2_extract_pose_or_heatmat_from_image.bin [ 87%] Linking CXX executable 1_custom_post_processing.bin [ 87

“[ilink32] Fatal: Out of memory” in C++ Builder

被刻印的时光 ゝ 提交于 2021-02-18 06:27:11
问题 After updating Embarcadero C++ Builder to a new version, our project suddenly fails to build. This happens just with one of our projects. For the most of the team members, identical code builds without errors. On my computer, linking fails every time. In Build tab: [ilink32] Fatal: Out of memory In Output tab: Build FAILED. c:\program files (x86)\embarcadero\studio\18.0\Bin\CodeGear.Cpp.Targets(3517,5): error : Fatal: Out of memory There is no more information. If I enable Link with Dynamic

Static linking with Boost Filesystem not working

寵の児 提交于 2021-02-10 18:34:48
问题 I am trying to build boost from source and I need static linking as I am thinking to move this statically linked boost project to AWS lambda servers. I have done the following steps: I downloaded boost_1_72_0.tar.gz and tar xzvf boost_1_72_0.tar.gz inside third_party directory. cd inside boost_1_72_0. DST_DIR=/my local path/ where I want to install. ./bootstrap.sh --prefix=${DST_DIR} --includedir=${DST_DIR} --libdir={DST_DIR} --with-libraries=filesystem,system . ./b2 link=static --prefix=$

Getting linker errors when linking against libunwind for a library in my project

∥☆過路亽.° 提交于 2021-02-10 18:14:03
问题 I am running this command -- /usr/bin/c++ CMakeFiles/XYZ.dir/test/XYZ.cpp.o CMakeFiles/XYZ.dir/test/TempDir.cpp.o -o XYZ libXYZMaster.so -lboost_filesystem -lboost_system /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so -lboost_random -lboost_iostreams -lboost_thread -ldw -lunwind -Wl,-rpath,/home/user885/untitled/build But I get this linker error -- libXYZMaster.so: undefined reference to `_Ux86_64_step' libXYZMaster.so: undefined reference to `_Ux86_64_init_local' libXYZMaster.so:

Getting linker errors when linking against libunwind for a library in my project

孤者浪人 提交于 2021-02-10 18:05:28
问题 I am running this command -- /usr/bin/c++ CMakeFiles/XYZ.dir/test/XYZ.cpp.o CMakeFiles/XYZ.dir/test/TempDir.cpp.o -o XYZ libXYZMaster.so -lboost_filesystem -lboost_system /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so -lboost_random -lboost_iostreams -lboost_thread -ldw -lunwind -Wl,-rpath,/home/user885/untitled/build But I get this linker error -- libXYZMaster.so: undefined reference to `_Ux86_64_step' libXYZMaster.so: undefined reference to `_Ux86_64_init_local' libXYZMaster.so:

Linker error when trying to use ImageMagick as static libraries with Visual Studio compiler

微笑、不失礼 提交于 2021-02-08 10:12:55
问题 This question has already been asked here, but since I have many more details to provide, I think it is best to start with a new question. I have trouble linking the ImageMagick lib files in my program that uses the Visual Studio MSVC 2015 compiler. Here are the steps I have followed: I have compiled the static MT runtimes by using the "configure.exe" utility and built in Visual Studio the solution it generated, "VisualStaticMT.sln". This creates lib files such as "CORE_RL_Magick++_.lib" in C

Compiling with external libraries

邮差的信 提交于 2021-02-08 07:40:08
问题 I am having an issue with compiling one of the sample (example codes) for a C++ based jwt library from a github project: jwt-cpp I cloned it and compiled it using the steps provided in the README file, which seemed successful. After that I did a ldconfig . Now, I am trying to build the example code. #include <iostream> #include "jwt/jwt_all.h" using json = nlohmann::json; int main() { // Setup a signer HS256Validator signer("secret!"); // Create the json payload that expires 01/01/2017 @ 12

multiple definition linker error after adding a function to a previously linking file

左心房为你撑大大i 提交于 2021-02-06 10:54:40
问题 So my program is working fine. Compiling, linking, running, the works. Then, I decide to add a simple function to one of my files, like this: #ifndef UTILITY_HPP #define UTILITY_HPP /* #includes here. There's no circular include, I've checked. */ namespace yarl { namespace utility { (several function declarations and definitions) bool isVowel(const char c) { if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') return true; else return false; } } } #endif That function definition is

Undefined reference to (SFML)

百般思念 提交于 2021-01-29 06:05:06
问题 I am trying to link SFML with CMake, but I have some issues with make: /home/ishidex2/Documents/QtCreator/CMakeExample/main.cpp:-1: error: undefined reference to `sf::String::String(char const*, std::locale const&)' And some kind of errors like this. First of all, I installed SFML by this command: sudo apt-get install libsfml-dev And then followed this tutorial : https://github.com/SFML/SFML/wiki/Tutorial:-Build-your-SFML-project-with-CMake I think this is a problem with linking, but I don't

What is an undefined reference/unresolved external symbol error and how do I fix it?

给你一囗甜甜゛ 提交于 2021-01-29 05:26:03
问题 What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them? Feel free to edit/add your own. 回答1: Compiling a C++ program takes place in several steps, as specified by 2.2 (credits to Keith Thompson for the reference): The precedence among the syntax rules of translation is specified by the following phases [see footnote] . Physical source file characters are mapped, in an implementation-defined manner, to the basic source character set