4,059 questions
3
votes
3
answers
126
views
-rpath-link=dir not able to locate the shared library
In the main project there are 3 shared library sub-projects and one binary project. The shared library libb.so depends on liba.so and shared library libd.so depends on libb.so and lastly the binary op ...
0
votes
0
answers
55
views
Multiple definition of __sync_fetch_and_add_4, undefined reference posix_spawn_file_actions_addchdir_np
I've got two strange errors, which occur when linking a static library (not written by me) into my C++ project intended to run on a Raspberry Pi. Compilation (both of the lib, and of my client code; ...
0
votes
1
answer
138
views
How to fix the error: multiple definition of 'GuiEnable'?
I am having some trouble configuring raygui.h with cmake using two targets, a library and a executable. There is a repository here with the exact files that causes errors of multiple definition of ...
5
votes
2
answers
166
views
How to cause a linker error when an externally-defined macro is inconsistent across translation units?
I'm writing a header-only library which defines class X in header x.hpp. The implementation of X is different for different standard versions:
#if __cplusplus < 201703
class X {
int a; ...
0
votes
0
answers
175
views
Weird linker error "undefined reference to `__imp__vsnprintf'" in "libcrypto.a" in C++ Windows project?
I've been working on a C++ project. I have been using 2 Windows PCs for building it and both worked fine with the same (kinda janky) setup. I recently got a new computer and I get a linker error. My ...
0
votes
2
answers
66
views
Static library not found by linker despite its directory being stated [closed]
I've got a problem with a static library (.a file) I'd like to include into my project: Compilation (with gcc) works well, but linking ends with the library not being found by ld whatever I do:
arm-...
1
vote
1
answer
65
views
How to diagnose differences between versions of .so file to understand different linker behaviour?
I have a pre-built image of a shared library, and that library implements main() with something like:
int main(...) {
bootstrap(...);
return 0;
}
bootstrap(...) {
/*...*/
sc_main(...);...
0
votes
0
answers
88
views
React Native 0.82 iOS linker error: Undefined symbols for architecture arm64 (unsafeExecuteOnMainThreadSync )
I’m migrating an existing React Native app to React Native 0.82.x.
Android builds and runs fine, but iOS fails at the link step with the following error:
Undefined symbols for architecture arm64:
&...
1
vote
6
answers
213
views
How can I tell my compiler or linker, that some symbol reference is only necessary for some function?
Suppose I'm working a library; say it's in C for simplicity. This library exposes and defines two functions:
f(), which calls an auxiliary function aux(), declared but not defined by my library.
g() ...
0
votes
1
answer
229
views
Linking fails with: in function `main.cold': undefined reference to `__cxa_call_terminate'
I'm trying to build, using CMake, a program involving C++ and CUDA-C++ code. It used to build file, several months ago, but - now am getting a linker error I'm not familiar with:
in function `main....
0
votes
0
answers
106
views
Where is wgpu::EmscriptenSurfaceSourceCanvasHTMLSelector located?
I'm following this C++ WebGPU tutorial (with associated Git repo here) in another language, and so must rewrite the build script accordingly.
The tutorial calls wgpu::glfw::CreateSurfaceForWindow ...
4
votes
2
answers
161
views
avr-g++ - Undefined reference to register Y upon linking
I have a weird problem when doing inline asm and compiling/linking with avr-g++ (version 16, fresh from the Git). I think this might be a bug of the tool chain, but I wanted second opinions in case I ...
0
votes
0
answers
86
views
Qt isn't detecting MSVC compiler while installation
My Qt isn't able to detect MSVC 2022 compiler only showing MINGW compiler in installation. I have Visual Studio with MSVC 2022 Latest and have all the necessary configuration like software ...
0
votes
0
answers
186
views
Nightly Rust #[unsafe(naked)] function leads to undefined symbol linker error in --release mode on RISC-V
I am writing a hobby OS kernel in Rust for the riscv64gc-unknown-none-elf target. I have defined my trap_entry, as a #[unsafe(naked)] function within a Rust module.
When I compile in release mode (...
0
votes
0
answers
73
views
Undefined symbols error when integrating VStarCam native iOS SDK in Flutter using MethodChannel
I'm integrating the native iOS VStarCam SDK into my Flutter project using MethodChannel. On iOS, I get multiple "Undefined symbol" linker errors when building the app for a physical device. ...