Skip to main content
Filter by
Sorted by
Tagged with
4 votes
2 answers
215 views

I'm working on converting a Python package to a more efficient version by porting it from Python to C++ using pybind11. The performances are really better, but now I have to distribute it. It's an &...
Aurelien's user avatar
  • 1,182
3 votes
0 answers
101 views

I am trying to build an R module linking statically OpenBLAS: mypkg/ ├── DESCRIPTION ├── NAMESPACE ├── R/ │ ├── check_openblas.R │ ├── my_interface.R │ └── openblas_init.R ├── inst/ │ └── libs/...
Josh9999's user avatar
0 votes
0 answers
73 views

I'm building a cross-platform C application with a GTK-based GUI that performs cryptographic functions (like AES encryption/decryption using OpenSSL). I'm developing primarily on Windows using CLion ...
Prasanth Vaindam's user avatar
2 votes
1 answer
136 views

I found this question about the difference between .a and .so files First Linking the dynamic libraries: One answer says: The advantage of .so (shared object) over .a library is that they are linked ...
FOXDeveloper's user avatar
-5 votes
2 answers
121 views

Is it possible to write winapi function prototypes in a C file I know that it is possible, because the function prototype (CryptAcquireContextW above works to my delight But I can't write VirtualLock ...
Aleister'Andrew Luci'Luzhin's user avatar
0 votes
0 answers
24 views

If I have a ELF binary that has dynamic dependencies, are there any tools to perform ahead-of-time linking to create a static binary with no dependencies? e.g. $ ldd $(which tcpdump) /lib/ld-...
Jon Bates's user avatar
  • 3,193
0 votes
0 answers
24 views

I'm trying to compile and debug my main.cpp code, with the header file of declarations ./include/linalg.hpp and the definitions in ./src/linalg.cpp, but I face the error below: Executing task: ...
mohammadamin asadi's user avatar
1 vote
2 answers
89 views

I have seen terminate called after throwing an instance of 'std::system_error' - and while I believe it talks about the similar underlying problem, the proposed solution there does not work in ...
sdbbs's user avatar
  • 5,948
0 votes
1 answer
54 views

I am investigating whether disaggregating sections in a statically linked ELF file affects performance. Specifically, I have multiple statically linked libraries (e.g., lib1, lib2, lib3, lib4), and ...
Khrn's user avatar
  • 354
-2 votes
1 answer
127 views

I have lib2 that depends on for some small functionality on a large lib1. I want to deliver lib2 but not lib1 to a client that builds executables based on lib2. lib1 is only used for implementations ...
Mike's user avatar
  • 4,359
1 vote
1 answer
82 views

I have a simple Hello World program written in C, which I statically compiled using: gcc -static -fno-pie -o hello{1|2} hello.c. I expected that executing these two binaries would exhibit cache ...
Khrn's user avatar
  • 354
0 votes
1 answer
164 views

I am using Rust in a Meson based build-system where I build a static library that I need to link to a Rust crate built with Cargo. Right-now I use this environment variable in my Cargo invocation: '...
Devilish Spirits's user avatar
0 votes
0 answers
58 views

I am creating a static library lets call it X. This library uses rapidjson library in .cpp files. When I export this as static library, I want to hide rapidjson dependency. Another project should be ...
berkeyvx's user avatar
0 votes
1 answer
253 views

I need some advice regarding the static linkage of a Rust library into C++ application. I am able to correctly link a very easy code without Rust dependencies and I am also able to link the code (even ...
masaj's user avatar
  • 87
0 votes
0 answers
557 views

I have a VS2022 C++ project that uses zstd. Previously, it used zstd v1.5.2; I changed this to v1.5.6 (the current version). Now when I attempt to run the project, I get an error "The code ...
Woody20's user avatar
  • 867
0 votes
1 answer
102 views

I have an application that has been worked on for several decades and I was provided .h and .a files. My program is mainly in C/C++ and when I try to link to these .a files, I get: Error LINK2019: ...
ChubbyMonkey's user avatar
0 votes
0 answers
73 views

A python C++ extension has the following structure: /myextension |_____basecode | |__header.h | |__functions.cpp | |_____utilities | |______utilities.h | |...
subhacom's user avatar
  • 919
2 votes
1 answer
183 views

My general task: I have a Fortran Tool which uses the functions dgemm, dgemv, dgesvx and dsyev from the MKL Library. I need to compile my code as a shared object (.so) to make it work on a different ...
Toni's user avatar
  • 23
0 votes
1 answer
87 views

This simple testcase: #include <unistd.h> void _start(void) { _exit(0); } crashes when run on Debian 12.6 i386. Compiled with gcc -lc -nostdlib -static -Os. Note that this is on an ...
Paul Floyd's user avatar
  • 7,180
0 votes
1 answer
86 views

I am working on adapting an existing ODBC driver so that it can target Linux. ODBC Drivers are generally distributed as DLLs on Windows and shared objects (.so) on Linux. The driver depends on Boost. ...
William Navarre's user avatar
0 votes
2 answers
141 views

I am Programming an App with visual studio 2022, in c++, x64 with libraries installed with help of vcpkg. They are dynamic link libraries. I want to use my App as static, to run it in another PC ...
juanlg's user avatar
  • 3
1 vote
1 answer
87 views

Can Static-libraries functions get inlined? lets say I have these files main.cpp #include <lib/header.hpp> int main() { return lib::meaningoflife(); } lib/header.hpp namespace lib { ...
user avatar
1 vote
0 answers
77 views

I'm on Linux Ubuntu. I'm reimplementing the Flex scanner example provided at page 5 of "Managing projects with GNU make" by ROBERT MECKLENBURG. count_words.c (application source code): #...
yossi-matkal's user avatar
0 votes
1 answer
191 views

I'm trying to distribute an opencv binary on different Linux operating systems, but I've failed because of dependency problems. What I'm aiming for is something similar to the opencv-python pip ...
smbape's user avatar
  • 1
0 votes
1 answer
287 views

I'd like to compile a C program with system libraries (such as libc) linked statically, with all my other custom libraries (such as openssl) linked dynamically. When I compile a "Hello World"...
Austin M's user avatar
1 vote
1 answer
251 views

I have an executable (test) using a static library (A), which uses another static library (B). The file structure is as follow: test: { CMakeLists.txt, main.cpp, deps: { A: { ...
luis's user avatar
  • 2,345
1 vote
0 answers
113 views

I'm trying to test this static linking example with .net in linux and keep getting the following exception; System.DllNotFoundException: Unable to load shared library 'nativelib' or one of its ...
user2384330's user avatar
0 votes
1 answer
174 views

Is it possible to have Go code use the Go runtime with this buildmode? -buildmode=c-archive I am building my Go code as a static library and linking it with .o files that were compiled from native ...
CorkiMain's user avatar
1 vote
0 answers
195 views

I'm trying to create a plugin for Unreal Engine 5.3.2 for connecting to an mqtt broker in c++ and for that I need to use paho.mqtt.c and paho.mqtt.cpp. I built the 2 libraries with cmake. When I tried ...
Christina Repou's user avatar
0 votes
1 answer
270 views

I just finished a tutorial on building a DLL library. From the tutorial I learnt that a DLL also has an associated lib file, which the linker will use to statically linked in information to the client ...
memelord23's user avatar
2 votes
0 answers
256 views

I need a git binary with https support in a distroless Docker image. I'm using musl C library and compiler - installed from Ubuntu repo - to statically compile git and all of its dependencies (libcurl,...
Karol Jędrzejczyk's user avatar
4 votes
1 answer
2k views

I'm trying to build an application and link it against the ffmpeg DLL's. However I want to build a static exe file. I'm using MSYS2 and mingw-w64 (x86_64) with gcc version 13.2.0, when building this ...
user2406275's user avatar
0 votes
1 answer
417 views

I'm using Premake to manage the build configuration of my project, which consists of two static libraries ("Engine" and "Game") and an executable ("Launcher"). But when I ...
Henrik's user avatar
  • 87
0 votes
1 answer
136 views

I used the following command to get a list of pre-built packages for the libpng library: conan download libpng/1.6.40 -p "arch=x86_64 AND os=Windows AND compiler=msvc AND compiler.version=192&...
langlauf.io's user avatar
  • 3,259
0 votes
0 answers
454 views

I have been trying to set up my OpenGL, GLFW and glad project for some days now and have not been met with success. At first I was getting "undefined reference to 'glfwInit()'" while trying ...
user23732609's user avatar
1 vote
1 answer
139 views

I'm attempting to build an executable on a Debian Bookworm system to be run on Debian Bullseye. I have downloaded and unpacked library packages for Bullseye in dedicated directories to link against. ...
bodqhrohro's user avatar
0 votes
1 answer
206 views

To port some existing code from FreeBSD to Ubuntu (22.04) with the libbsd-dev package installed, I am encountering a problem in the linking phase: undefined reference to 'strnstr'. Code: #include <...
Monolo's user avatar
  • 18.2k
0 votes
1 answer
103 views

I'm trying to compile R as a static library with the -fPIC flag so I can use it within java+JNI (is it only possible ?), but I cannot find the right flags in '.configure' to compile R this way. I ...
Pierre's user avatar
  • 35.4k
1 vote
1 answer
122 views

I want to compile a C++ program so that it dynamically links to libc, but does not have a dynamic dependency on libstdc++. for example 'hello world' using std::cout, when compiled with the -static-...
kvas97's user avatar
  • 13
1 vote
0 answers
202 views

I've been bashing my head off this for a while now and am out of ideas. What I want to do I have an application written in C (on a linux platform) that has two main external dependencies. Raylib and ...
smolloy's user avatar
  • 368
1 vote
1 answer
125 views

Lets imagine a scenario where I have an executable (A), a dll (B), and a static library (C). Both A and B are linking C and include its header files. Now in C exist a class: class Foo { static ...
CJ_Notned's user avatar
  • 308
0 votes
0 answers
87 views

I am new to C++ and trying to learn from online Stanford CS106B course. In this course, people from Stanford have provided external C++ libraries (Link to which is given below). I have downloaded this ...
programmer_04_03's user avatar
3 votes
0 answers
122 views

I am trying to get the ultimate performance in my application based on python. I am already using Cython and everything works compiling it in C++. I am even able to pack everything with PyInstaller ...
JairoV's user avatar
  • 2,114
1 vote
1 answer
268 views

I remember seeing some command that works like this: g++ main.cpp `some_forgotten_command --some_forgotten_options some_library` When the command is run, it will substitute the part enclosed by `` ...
ihdv's user avatar
  • 2,337
0 votes
2 answers
996 views

I'm trying to statically link the libcurl library into my executable so I can run my executable on other machines without need of dll files since all the necessary files are baked inside my executable ...
GooDeeJAY's user avatar
  • 1,860
1 vote
0 answers
37 views

I'm trying to build a statically linked curl executable from source: When I grep around1 the CMakeLists.txt, I find relevant flags: $ git clone https://github.com/curl/curl.git $ cd curl $ grep -rn &...
OrenIshShalom's user avatar
0 votes
2 answers
45 views

I've been trying to run a Flask program, however it is not detecting the style.css file within the static folder. The organization of my different directories are shown in this image here: file ...
e3ham's user avatar
  • 15
0 votes
0 answers
354 views

I am currently developing a little program, and faced an issue when I tried to run it on a clean Linux distribution: OpenGL freeglut3 was not installed by default. I faced the same issue when I ...
iogamesplayer's user avatar
0 votes
0 answers
388 views

How can I build python 3.12 from source while statically linking at least libc but ideally all dependencies? So far I have tried setting LDFLAGS="-static" before running the configure script ...
Anass Tahiri's user avatar
2 votes
1 answer
940 views

I was recently attempting to build some files in C and C++ for an AWS machine and received the linker error __dso_handle is not defined. This stymied me for some time as I reviewed several pieces that ...
Benyamin's user avatar
  • 139

1
2 3 4 5
37