Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

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 ...
indjev99's user avatar
  • 122
0 votes
1 answer
33 views

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-...
Neppomuk's user avatar
  • 1,222
1 vote
1 answer
38 views

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(...);...
sh1's user avatar
  • 5,010
0 votes
0 answers
45 views

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: &...
Ahmet Hoşca's user avatar
1 vote
6 answers
203 views

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() ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
105 views

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....
einpoklum's user avatar
  • 137k
0 votes
0 answers
78 views

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 ...
William Ryman's user avatar
4 votes
2 answers
141 views

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 ...
krab5's user avatar
  • 105
0 votes
0 answers
63 views

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 ...
Abril's user avatar
  • 1
0 votes
0 answers
136 views

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 (...
陈嘉澪's user avatar
0 votes
0 answers
70 views

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. ...
Sadhu Sanjay's user avatar
5 votes
1 answer
216 views

I'm trying to link a zig static library with golang. here is my build.zig const std = @import("std"); pub fn build(b: *std.Build) void { const windows = b.option(bool, "windows&...
vuzzie's user avatar
  • 133
0 votes
0 answers
70 views

I need to compile an old version of GCC and it requires also old version of several libs. One of them is gmp-4.2. When trying to build gmp 4.2, ./configure is performed without errors, but make is ...
KmsDev's user avatar
  • 1
0 votes
1 answer
92 views

I am using Debian Unstable/Experimental. When I use -fsanitize=address with clang-22, it fails with: /usr/bin/ld: cannot find /usr/lib/llvm-22/lib/clang/22/lib/x86_64-pc-linux-gnu/libclang_rt....
horsey_guy's user avatar
2 votes
1 answer
173 views

I am making a small application with glfw. I'm not using CMake and instead opted to make a custom build system for more control, but I'm getting an error when trying to run my program: error while ...
Joe's user avatar
  • 53
0 votes
0 answers
39 views

My colleague can build our project, while I get the following linker errors: 26>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match ...
Pietro's user avatar
  • 13.5k
0 votes
0 answers
81 views

When I try to use the InitWindow function from raylib using this code: global _main extern InitWindow extern _ExitProcess@4 section .data title db "Window Title",0 section .text _main:...
Hüse 64's user avatar
1 vote
1 answer
74 views

I am adding a linker section in the TI arm clang linker and I have added by following MEMORY { TEST_SECTION ( RWIX ) : ORIGIN = 0x41C00000 , LENGTH = 0x00007800 } --retain="*(....
user2986042's user avatar
  • 1,300
0 votes
0 answers
38 views

End result is a ecoinvent 3.9.1 cutoff database with all it's datasets in BW2 (within my project) but without being correctly interlinked with biosphere3; This results in 0.0 LCIA scores if I want to ...
Jolin Neuß's user avatar
0 votes
0 answers
80 views

How can I resolve the "undefined reference to 'yylval'" error in the simplest program ever? This is my lexer.l file %{ #include "parser.tab.h" %} %% [0-9]+ { ...
Enis Licina's user avatar
0 votes
1 answer
50 views

Win 11-64 Pro v24H2 Cygwin version 3.7.0-0.116 g++ version 15.1.1 gdb version 15.2 This has me stymied. I don't know enough to create a test case. I am created an API (cygslip.dll) which I ...
lostbits's user avatar
  • 1,084
0 votes
0 answers
74 views

I have a main project with some local packages. These packages are imported in the main project as features. I want to have an Analytics package that is a simple wrapper around Firebase Analytics that ...
Bob Voorneveld's user avatar
0 votes
1 answer
125 views

So we have a cucumber test crate that tests an FFI crate. We include the FFI library in the cargo.toml file with : ffi_lib = { path = "../base/ffi_lib" } Then its linked into the code via: #...
blackwolfsa's user avatar
0 votes
1 answer
68 views

Im writing a kernel in Rust, but are having some problems with the panicking module. I have written a build script that should build the boot image of the OS, but i seem to get an error while trying ...
Bjørn Pollen's user avatar
0 votes
0 answers
74 views

Till yesterday, I was using VS 2019 16.7 and later evening I upgraded to VS 2019 16.11. After that I started getting this error. 1>Generating Code... 1>LINK : fatal error RC1106: invalid option: ...
HunterGathererCoder's user avatar
1 vote
0 answers
98 views

I’m porting my small C++ project from MinGW + GCC to MSVC 2022 with the Ninja generator. On MinGW everything links fine, but with MSVC I keep getting this: engine.lib(windows_window.cpp.obj) : error ...
Trey Bertram's user avatar
2 votes
2 answers
91 views

I have a header file that introduces a macro that declares a Stack structure and some asociated functions that work with that struct. Header file (Stack.h) content is shown below: #ifndef STACK_H #...
Andrey Dorofeev's user avatar
0 votes
0 answers
574 views

Created own custom pod lib. Podspecs as below, s.ios.deployment_target = '10.0' s.source_files = 'Classes/**/*.swift' s.swift_version = '5.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => ...
Ahmad's user avatar
  • 11
2 votes
1 answer
101 views

I ran into a problem when the linker complains about undefined reference to <function> after compiling all the objects and files, even though functions are declared and defined. I've been ...
rat's user avatar
  • 41
1 vote
1 answer
76 views

I'm currently build the Drogon framework on a Windows platform with MinGW. Drogon integrated the hiredis library. While building the project, I encountered the following linker errors: D:/dev/mingw/...
HanWang's user avatar
  • 31
-3 votes
1 answer
83 views

I'm trying to run the following example code in Visual Studio: #define MA_NO_DECODING #define MA_NO_ENCODING #include "miniaudio.h" #include <stdio.h> #ifdef __EMSCRIPTEN__ #include &...
Taylor's user avatar
  • 3
-6 votes
1 answer
144 views

So basically I want to have my TLS callbacks in a lib where ppl who use my library will automatically have the callbacks implemented into their executable. This is my code: // .cpp file void ...
Aspis's user avatar
  • 7
0 votes
0 answers
57 views

Main.cpp file #include <iostream> #include "RetailItem.h" #include <iomanip> using namespace std; //getData function prototype void getData(string &desc1, string &desc2,...
dankesttie's user avatar
1 vote
1 answer
71 views

I'm facing an issue while building my iOS project in Xcode. The error message is: Library 'FirebaseCore' not found. Linker command failed with exit code 1 (use -v to see invocation). I have already ...
Ashitha Vinod's user avatar
0 votes
1 answer
75 views

I have a project under ESP32 using the ESP-IDF framework, version 5.4 My project has several submodules which are built as static libraries and linked. Until now, things have been working very well. ...
danmcb's user avatar
  • 371
5 votes
0 answers
146 views

We have a legacy C/C++ library in which we are trying to integrate some Rust code as a C style library. However, this C/C++ library should also be usable in Rust through a wrapper written in Rust. The ...
user29811117's user avatar
2 votes
1 answer
705 views

I build using following command gcc project.c -IC:\Users\john\SDL3-3.2.2\x86_64-w64-mingw32\include -LC:\Users\john\SDL3-3.2.2\x86_64-w64-mingw32\lib -lSDL3 -o project the project file is simply #...
Manatee Pink's user avatar
0 votes
1 answer
190 views

I want to learn programming with Vulkan. My first step was to enumerate the Vulkan extensions count available on my system. So I wrote this simple code: #include <iostream> #include <vulkan/...
Johannes Krottmayer's user avatar
0 votes
1 answer
316 views

I am trying to use the cURL library(I am pretty new to libraries so I apologize for my ignorance). I use the command: g++ -I"C:/Curl/include" distance.cpp -o run -L"C:\Program Files\...
BackwardBoat269's user avatar
0 votes
0 answers
87 views

I am upgrading crosstools from gcc-7.5.0 to gcc 11.4.0. Using gcc 7.5.0, below source files can be built successfully. But using gcc 11.4.0, linking errors occur: PATH-TO-CROSSTOOLS/ld: test_beta/...
Ryan's user avatar
  • 51
0 votes
0 answers
107 views

I have read a number of SO posts on this but they do not answer the question of why an "undefined reference to ..." error can persist after marking a function as weak. I have a header file: #...
user avatar
1 vote
0 answers
155 views

"make" gave me this error message: g++ -I src/include -L src/lib -o main main.cpp -lmingw64 -lSDL2main -lSDL2 /usr/bin/ld: cannot find -lmingw64: No such file or directory collect2: error: ...
Dec_Ves's user avatar
  • 11
2 votes
2 answers
337 views

I'm trying to build a project with the Intel OneAPI 2024.2.1 compiler. My 32-bit release build has the issue of multiply defined symbols. There's a few math functions that are causing problems: lld-...
T. J. Evers's user avatar
1 vote
1 answer
91 views

I'm getting a linker error because of a conflict between liburctd.lib and libmmt.lib. Why I'm getting that is a whole other question. In trying to figure that out, I wanted to see if just setting /...
T. J. Evers's user avatar
0 votes
0 answers
25 views

I am currently working on writing a UMAT subroutine. In one part of the code, I need to solve a system of linear equations. Initially, I used Fortran libraries such as LAPACK and PARDISO for solving ...
Albert2013's user avatar
1 vote
1 answer
89 views

I'm trying to follow the GObject Tutorial to implement my first GObject class. So far, I've come up with this code: train.h: #pragma once #include <glib-object.h> G_BEGIN_DECLS #define ...
Newbyte's user avatar
  • 3,957
0 votes
0 answers
102 views

This is my CMakeLists.txt file for a project I am trying to run, everything seems fine up until the filesystem library, I tried a couple of things and what worked for me is the std::experimental::...
Suhail Almarzouqi's user avatar
1 vote
1 answer
161 views

I attempted to compile PyTorch from source but ran into a very strange linking error. After investigating, I discovered that a templated function defined in a C++ file and its declaration in a CUDA ...
mibu's user avatar
  • 1,627
3 votes
2 answers
305 views

I want to run a simple VTK8.1.2 demo on Centos7.9-2009 to test the VTK package for my project. Here is the demo: #include <vtkSmartPointer.h> #include <vtkRenderer.h> #include <...
35p's user avatar
  • 43
2 votes
0 answers
112 views

this is a follow up to my previous question I asked, I made some progress with things but hit another roadblock. I downloaded the libjpeg-turbo library from the main github repo, then I built it using ...
Jack Dawson's user avatar

1
2 3 4 5
82