Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
77 views

I am trying to use the Open Cascade library to create a model converter (DLL). The Open Cascade library contains many DLLs and Libs I have specified the additional libraries TKDEGLTF.lib TKMesh.lib ...
craig1231's user avatar
  • 3,888
1 vote
1 answer
61 views

I am building a wheel of PyTorch from source, based on their https://github.com/pytorch/pytorch/blob/v2.6.0/.ci/manywheel/build_common.sh CI build script. I tested on a "local" instance of a ...
Corneau's user avatar
  • 193
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
0 answers
45 views

I have a project that fails to build. PS C:\Users\me\Data\personal\rust\sdl-learn> cargo build Compiling sdl-learn v0.1.0 (C:\Users\me\Data\personal\rust\sdl-learn) error: linking with `link.exe`...
damix911's user avatar
  • 4,475
0 votes
2 answers
169 views

https://github.com/PoutineSyropErable/MapleKernel The BareBones dir. debug2 branch. e5cf6d69e3f9f053 commit hash. How is a proper 32PM -> 16RM mode switch done on modern x86_64? My 16 bit code is ...
Self learning student's user avatar
5 votes
1 answer
82 views

I'm writing a hello-world program in i386 assembly for OpenBSD 7.8. The program works if the string (buf argument of write(2)) is in .data or on the stack, but write(2) returns EFAULT (== 14) if the ...
pts's user avatar
  • 88.7k
5 votes
1 answer
143 views

I am currently developing software for the Atmel AVR32 AT32UC3C0512C. The software consists of C modules (.c files) as well as standalone assembler modules (.S files). My IDE is Microchip Studio 7.0....
Binarus's user avatar
  • 4,547
0 votes
0 answers
79 views

I have a CMake based Windows library project that only links successfully with the MSVC link.exe due to some obscure third party library dependencies. However, I want to compile the project using the ...
PluginPenguin's user avatar
-1 votes
1 answer
103 views

Minimum reproducible example: // dynamic.hpp class Test { private: static void update(); }; // dynamic.cpp #include "dynamic.hpp" #include <iostream> void Test::update() { ...
Placeblock's user avatar
0 votes
0 answers
67 views

I am trying to get users to be able to log in via a Cognito account and use those credentials to make calls on a backend API. To that end I have been trying to import the Cognito libraries in an ...
SaturnBowerBird's user avatar
2 votes
1 answer
110 views

GNU documentation is really poor and is worded in a way that seem to imply that you can only assign version only to symbols that are listed explicitly either under global: or local:, but those are ...
Dan M.'s user avatar
  • 4,074
9 votes
1 answer
513 views

Background I am working on a C++ project that is injected (via our own loader program that creates the process and loads the code and patches from a DLL the project is compiled to) into a closed-...
Kerbiter's user avatar
  • 102
0 votes
0 answers
34 views

I'm cross-compiling avr-gcc statically (in order not to depend on Android linker) to work on aarch64 android devices. gcc is compiled with the flags: generic_arm64:/data/data/myapp/files/sdk/hardware/...
4ntoine's user avatar
  • 20.6k
1 vote
0 answers
76 views

I have a project written in C++ which consists in a main application which loads a few plugins. The overview of the problem is as follows: The plugins, which are shared objects (.so), load without any ...
southernKid33's user avatar
3 votes
0 answers
111 views

TLDR: On an embedded system, I have to place certain buffers to their own section to be used with DMA. However, the resulting section seems to contain unexplainable gaps. What could be going wrong? ...
Timo's user avatar
  • 971
4 votes
1 answer
137 views

Cosine and sine are computed with Horner's method and a Chebyshev polynomial, e.g. a0 + x(a1 + x(a2 + ...))). The fused-multiply add instructions this generates form a dependency chain, meaning we can ...
asdfldsfdfjjfddjf's user avatar
4 votes
1 answer
116 views

On Windows 11, the BCrypt library contains the Microsoft cryptographic functions. I have noticed a unique behaviour of the linker when linking against bcrypt.dll and I would appreciate the opinion of ...
Thierry Lelegard's user avatar
1 vote
0 answers
109 views

I have a rust application that I wish to link against a few C++ static libraries. I have my build.rs script triggering the compilation of my C++ libraries which I then link using a cargo command: ...
Elad Maimoni's user avatar
  • 4,781
0 votes
0 answers
28 views

The scenario is this: My compilation environment is unified, using the lower-level glibc_2.18. I want to depend on a CUDA .so file compiled using the higher-level glibc_2.27. My runtime environment ...
zcfh's user avatar
  • 131
2 votes
0 answers
67 views

I have a large fortran 77 code, "NSCool", distributed among many files which I compile into a python package using f2py. It used to work nicely with python 3.7, then it took me weeks to have ...
Dany Page's user avatar
0 votes
1 answer
60 views

I have one dynamic library with the function: extern "C" void start() { } And a second dynamic library with the function: extern "C" void start() { } Exactly the same. I open up ...
Zebrafish's user avatar
  • 16.3k
0 votes
0 answers
86 views

How can I add post_install configurations to an existing podfile that already has a post_install section? I need to add a line to fix a build clang ld linker error to debug-iphonesimulator myapp....
rolinger's user avatar
  • 3,196
6 votes
1 answer
119 views

Even though this might look like duplication, I'd claim that it isn't. Why does a compiler make the Foo function, which is defined in foo.c as inline double Foo() { return 1.2; }, a global function if ...
Stephen's user avatar
  • 735
1 vote
1 answer
78 views

I have bare metal project with 2 elf executables loaded in memory. And I want to share some memory between them (with code and data). Is it eligible to add object file in some specific section for ...
Maksim S.'s user avatar
  • 203
5 votes
1 answer
219 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
2 votes
1 answer
100 views

If I have the following code: #include <stdio.h> static int order = 5; char *and_the = "DDD"; int main(int argc, char *argv[]) { printf("%d\n", order); printf("%s\...
Nate's user avatar
  • 181
0 votes
0 answers
71 views

I have a cocoapods library. This library has some C functions that I have exposed globally: #define EXPORT __attribute__((visibility("default"), used, retain)) extern "C" EXPORT ...
Oscar Franco's user avatar
  • 6,320
0 votes
1 answer
163 views

Consider this simple build: #!/bin/sh -eu : ${CC:=gcc} cat > libmain.c <<'EOF' #include <stdatomic.h> struct two{ long a,b; }; _Atomic struct two atwo; int main(){ atomic_exchange(&...
Petr Skocik's user avatar
  • 60.6k
0 votes
1 answer
42 views

I'm using CLion to build a C++ or a C project. Looking at the project's CMake Profiles, I notice I can choose a toolchain; and looking at the toolchains dialog, I see an entry for choosing a C ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
23 views

I've added muparser to my CMake project using the FetchContent module as follows: FetchContent_Declare( muparser GIT_REPOSITORY https://github.com/beltoforion/muparser.git GIT_TAG master ) ...
Carlton's user avatar
  • 4,305
1 vote
0 answers
58 views

TL;DR: Is there a way to specify custom link order when CMake managed dependencies seems not enough? I'm developing a toy OS for fun and having trouble linking in the GCC crt* files responsible for ...
curbalman's user avatar
0 votes
0 answers
125 views

I've been using the library SPHinxsys on my MacOS Intel. It worked in the past. However, just recently this error always appears when building: Linking CXX executable t..._ck/bin/...
essy.lin's user avatar
0 votes
1 answer
112 views

I'm writing a bare-metal firmware for a virtual RISC-V SoC. Below is code that communicates with a physical device on the SoC and it is using constant data from the my_data array that sits in ROM. The ...
TobiPlusPlus's user avatar
3 votes
1 answer
136 views

I write a compiler that generates LLVM IR code and then .obj file. Then I link it with some required .lib files. (msvcrt.lib, ucrt.lib, vcruntime.lib). I declared setjmp and longjmp there as follows: ...
crackanddie's user avatar
2 votes
1 answer
174 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
149 views

This is a lengthy one. I have basically compiled a Rust binary into a dylib and packaged into a .xcframework that contains per arch .frameworks. This loads correctly when run from Xcode into a real ...
Oscar Franco's user avatar
  • 6,320
0 votes
1 answer
102 views

I have the task of containerizing an ancient embedded build plan which uses the MontaVista GCC toolchain released in 2006. Unfortunately, the senior insists on using a setup similar to the old build ...
Lukas's user avatar
  • 794
1 vote
1 answer
95 views

I've made a few new classes for help in reading CSV files in a C++ program, based on code suggested in another stackoverflow post here. Here is the file declaring and defining the classes, along with ...
JW1966's user avatar
  • 151
0 votes
0 answers
75 views

I'd like to preface this with the understanding that I'm not the most knowledgeable on scatter files, but I've been learning a lot in the ARM forums about them. I'm working with the STM32F429 ...
slicknick's user avatar
-4 votes
3 answers
277 views

Commonly the linker is only invoked once. A linear list of input files can be specified for symbol resolution; there are flags for looping through the linker inputs. But for more sophisticated ...
Caulder's user avatar
  • 459
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
169 views

I'm trying to import a .NET project from iOS native project. During build time I'm getting linker error: ld: __DATA_CONST segment missing SG_READ_ONLY flag in .../Build/Products/Debug-iphoneos/[...
janh's user avatar
  • 242
0 votes
1 answer
98 views

Wondering if the specific linker used affects how asm file is interpreted. I am using NASM on windows 11, 64-bit, x64 processor. The linker I have is GoLink, but I'm not sure if that's the most ...
Dave's user avatar
  • 76
0 votes
0 answers
137 views

I am cross-compiling an example project on Linux to target a CortexA72. My project consists of the following files: /* main.cpp */ int main() { return 0; } /* syscalls.cpp */ #include <sys/types.h&...
salkin's user avatar
  • 177
1 vote
2 answers
108 views

I have the following task: Given source code A, modify it into source code B such that it can optionally enable fault injection. When the fault injection is disabled, it shall output the exact same ...
magnusmaehlum's user avatar
0 votes
0 answers
61 views

I'm working on a simple SDL2 project in Visual Studio using vcpkg for dependency management. In my vcpkg installation, I have both Qt5 and SDL2 installed. I've used vcpkg integrate install to ...
user23308521's user avatar
1 vote
1 answer
65 views

I assembled the following file with GAS, the GNU assembler: .extern foo .global bar .section .text bar: call foo ret In the object file it produced there is a relocation entry of type ...
mdjukan's user avatar
  • 173
2 votes
1 answer
70 views

I have 2 DLLs. I want create instance of class in my second DLL that I declare at .idl file of first library. But I get Error Link 2001 on CLSID, when try to link second DLL. I'm linking with first ...
SabakaSamson's user avatar
1 vote
1 answer
297 views

I'm building a project linking both with QtNetwork (Qt6) and Python library (3.8). At runtime, I get the error: my_prg_bin: symbol lookup error: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl,...
jpo38's user avatar
  • 21.9k
1 vote
1 answer
95 views

I am trying to build the following code on my computer but I run into a lot of errors. The error says that g_tagParams and g_loggerparams are multiply defined in many of the functions. But these two ...
user3147192's user avatar

1
2 3 4 5
286