Questions tagged [linker-errors]
An error received when combining individually compiled object files into executable code.
linker-errors
4,035
questions
-1
votes
0
answers
11
views
Cannot find external header included in a cmake built library
I have a very simple library with the following dtructure:
src
- myLib.h
- myLib.cpp
App
- testApp.cpp
CMakelist.txt
cmake_minimum_required(VERSION 3.10)
project(Testing)
# JSON
find_package(...
-1
votes
0
answers
25
views
c++: define static template method in non-template class (with header file) [duplicate]
I've seen many questions in this regard, but non seems to be facing this below issue, I'm new to C++ and I hope someone has an answer for below.
below code works fine (in one file):
main.cpp
class BB{
...
0
votes
0
answers
7
views
Unity IOS Xcode linker error undefined symbols referenced by UICKeyChainStore.o
I am very new to Mac and iOS, this is my first time building our game for iOS. Using Mac 2022 M2 arm 64, Unity version 2022, building for iOS min 13. The same project has been built for iOS ...
-5
votes
0
answers
51
views
VSCode C++ ld: symbol(s) not found for architecture arm64 problem in Mac [closed]
I have issue about the vscode with c++ when i run the single file like hello world its working good but gives this error when the header file and other files are included in the include event
When ı ...
0
votes
1
answer
19
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 ...
-1
votes
0
answers
29
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;...
-2
votes
0
answers
38
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 ...
-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 ...
0
votes
0
answers
59
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 ...
1
vote
1
answer
69
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 ...
0
votes
0
answers
51
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 =...
-1
votes
0
answers
47
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(...
0
votes
0
answers
32
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 ...
-1
votes
1
answer
57
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 ...
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, ...