Skip to main content

Questions tagged [linker-errors]

An error received when combining individually compiled object files into executable code.

linker-errors
0 votes
0 answers
12 views

Strange linking problem when `dlopen` a library

I have some strange linking problem with a library which is dynamically loaded using dlopen. Precisely, I have a code that loads a library libmine.so (which is part of the code) that depends on Intel ...
Dmitry Kabanov's user avatar
-1 votes
0 answers
26 views

Template-template parameters cause linking errors when specializing `std::formatter` [duplicate]

Note: This is a follow-up to my previous question, where I figured out how to properly separate the interface and implementation of a std::formatter specialization for a non-templated custom type (TL;...
Christopher Miller's user avatar
-2 votes
0 answers
35 views

complile Mstar code with gfortran, what is wrong? [duplicate]

any solution **bouchentouf@bouchentouf-desktop**:~/wien/SRC_mstar$ make gfortran -L/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -fopenmp -ldl -g -fbacktrace -ffpe-summary=none -o ...
abed ali's user avatar
-1 votes
0 answers
43 views

Getting the error LNK2019: unresolved for unit test file (.cc file) when using Gtest and for mock integrated with FFF for a .c source file [duplicate]

Hi as i'm new to the stackoverflow as well as unit testing for a .c files using gtest and fff, when building the test file(test_dummy.cc) getting the linking error this error haven't come when i tried ...
Prerana P's user avatar
0 votes
0 answers
58 views

vs code wont run with multiple cpp files [duplicate]

hello i am a beginner and currently following learncpp 2.8 on how to use multiple code files which i was able to build and run manually but build and fail to run in vs code despite setting tasks.json ...
mascarad ninja's user avatar
1 vote
1 answer
66 views

d3d10 C interface not available

I am porting an application from D3D7 to D3D10. Even though the C interface for D3D10 exists, It does not seem to be visible when compiling/linking. The D3D7 version uses the C interface and I do not ...
Raildex's user avatar
  • 4,466
0 votes
0 answers
47 views

How to setup rust LAPACK wrappers?

This has been asked before with no good answer. As an MVE one can try this: use lapack::*; fn main() { let n = 3; let mut a = vec![3.0, 1.0, 1.0, 1.0, 3.0, 1.0, 1.0, 1.0, 3.0]; let mut w =...
Makogan's user avatar
  • 9,191
-1 votes
0 answers
46 views

Linking error trying to create a simple window with SFML library

My problem is the following: whenever I try to compile the following code //minimal.cpp #include <iostream> #include <SFML/Window.hpp> int main() { sf::Window window; window.create(...
ftv0's user avatar
  • 1
0 votes
0 answers
29 views

Use linker on M1 macOS to link bash and C files to compile simple kernel

I am following this tutorial on M1 MacBook (macOS Sonoma 14.5): https://github.com/debashisbarman/Simple-Kernel-in-C-and-Assembly. The kernel should connect to C. I have following three files with the ...
user7289922's user avatar
-1 votes
1 answer
53 views

Can someone explain me how to add GLFW in a new CLion project?

I've been learning Cpp for a little while now, and I want to import libraires and such. But I haven't been able to import and use anything so far... I downloaded the binaries for GLFW, copied the ...
Lolou.'s user avatar
  • 19
0 votes
1 answer
37 views

gtk2 compile error: DSO missing from command line

This is a new question resulting from a recent question of mine: compiling error gtk2 source with gtk3: ‘GtkStyle’ {aka ‘struct _GtkStyle’} has no member named ‘font’ make process of compiling emelfm, ...
Janos Komaromi's user avatar
1 vote
1 answer
59 views

ESP-IDF linker not reporting duplicate functions so generating unsafe binary

I wrote a .c file (not c++) that contains a function called close(). It was public i.e. not static. I realise this was a foolish choice of function name, but assumed the linker would tell me if there ...
James's user avatar
  • 5,934
1 vote
0 answers
35 views

Reference variable in Store.swift class from Objective-C file using singleton pattern giving Linker command failed error

I am trying to reference a variable in a Swift class from an Objective-C view controller. I can reference functions and variables in other Swift Classes from this Objective-C class. However, when I ...
user6631314's user avatar
  • 1,868
-3 votes
1 answer
41 views

Shared library locations from executable, to copy for Docker multi-stage build

ldd is a partial solution: https://stackoverflow.com/a/63663617 I am trying to build a small Docker image from a large one. So I build my Rust project and COPY --from=stage0 into my distroless (also ...
Samuel Marks's user avatar
  • 1,743
0 votes
0 answers
53 views

Linking error when type aliasing in dynamic library

I am working on a dynamic library that gets included in a larger project. To be able to run it on Windows and Linux, I wanted to try to set up type aliasing with char and wchar_t depending on if there ...
André Lehto's user avatar

15 30 50 per page
1
2 3 4 5
269