Skip to main content
Filter by
Sorted by
Tagged with
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
125 views

On installing boost library (of which boost graph library is a part), the following has been installed on my computer: (1) C:\local\boost_1_86_0\boost\graph\header files.hpp (2) C:\local\boost_1_86_0\...
One_Cable5781's user avatar
0 votes
0 answers
40 views

I've got a library (Google's protobuf, FWIW) which requires a certain compile-time flag if it's been built into a shared library. However, if it's been built into a static library, then it mustn't ...
David Given's user avatar
  • 13.8k
1 vote
1 answer
118 views

I've come across a strange issue related to Howard Hinnant's date.h library that causes all of <chrono> to break, at least according to VS. It appears to be related to using date/date.h in a ...
angelicelyria's user avatar
3 votes
2 answers
146 views

For context, I have been working on a game engine for a while now. The engine requires several libraries to function (Wayland, XKB, Vulkan, etc.). Because the added complexity of shared libraries ...
user avatar
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
0 votes
0 answers
30 views

I am trying to build and package an application with CMake, using Azure IoT C SDK. The projects instructs you to include it in your application by doing something like: cmake_minimum_required (VERSION ...
Alessandro Bertulli's user avatar
2 votes
1 answer
56 views

I am building an avr-libc static library like this: avr-gcc -O2 -I. -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -g -ggdb -ffunction-sections -fdata-...
Torsten Römer's user avatar
3 votes
1 answer
243 views

I'm trying to globally configure AddressSanitizer (ASan) for multiple executables in my C++ project by defining the __asan_default_options() function, like this: extern "C" const char* ...
Hamza's user avatar
  • 33
0 votes
0 answers
127 views

I'm working with a C++ project using Conan for dependency management and CMake as the build system. I created a new Conan package for a static library called mylib. The header files are located under ...
Rachel's user avatar
  • 45
0 votes
1 answer
122 views

I have a library that is already compiled to libserver.a And then I have main.cpp like this: #include <picohttp/picohttp.hpp> #include <iostream> The picohttp is already compiled to ...
Fuji's user avatar
  • 117
-1 votes
1 answer
116 views

Qwt-6.3.0 | Qt6.9.0 | mingw1310_64 | Windows11 I have installed qwt as a static library, got the library files libqwt.a und libqwtd.a in the subdirectory \lib as expected. In order to test the ...
Alain Weiler's user avatar
1 vote
0 answers
175 views

I've just compiled GCC from source, which gave me a libgccjit.so file to dynamically include from my program. However, perhaps I wouldn't want to bundle the file alongside the program if I were to ...
Coarse Rosinflower's user avatar
2 votes
1 answer
125 views

I've got a singleton registry that maps names to function pointers. I also have a registrar object whose constructor registers a function pointer. My goal is to have the functions and registry in a ...
Adrian McCarthy's user avatar
0 votes
0 answers
78 views

I’m trying to integrate Quiche library (which uses Bazel as its build system) into an existing Autotools-based C++ project. I need it as a third-party submodule. I am facing issues with:- Linking the ...
Drek Clark's user avatar
0 votes
1 answer
189 views

I asked an online LLM and it said: Yes, absolutely. You need to link to the dependency library even when building a static library that calls functions within it. But I tried building a static ...
Zebrafish's user avatar
  • 16.3k
2 votes
1 answer
216 views

I have been working on this simple example. This entire project is being compiled on a (Linux AArch64) Raspberry Pi 3B. Say I have a simple assembly function (that does SIMD addition on AArch64) ...
Radon's user avatar
  • 117
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
0 votes
1 answer
122 views

i had made a game on C using SDL2, SDL2_image, SDL2_mixer and SDL2_ttf libraries installed on Linux (Ubuntu) by sudo apt-get install libsdl2-dev (for example), and i wanted to improve it so it will be ...
Bekka Mushko's user avatar
2 votes
1 answer
221 views

I'm still on the learning curve with Go, but I've managed to compile and run a Go program that includes a C object file. The objective is to call an existing static C++ library. The call will be a bit ...
winwaed's user avatar
  • 7,820
1 vote
1 answer
72 views

Basic question: Can one specify, when building a static library (and ONLY when building the static library), that the static library needs to link with a shared object? I'm working on a project that ...
Tim Williams's user avatar
2 votes
3 answers
138 views

This question is related to that one: How can multiple definitions in static libraries be detected/prevented? and a sentence in the first answer. The paragraph "One Definition Rule" of ...
Benjamin Bihler's user avatar
1 vote
1 answer
82 views

Clarification I want to create static library from my code to share the artifacts (but not the code). I will call this Main_Project. In my Main_Project, I have startup.s and flash.ld files. startup.s: ...
B.Kaya's user avatar
  • 11
1 vote
0 answers
87 views

I have a C++17 console application that is built using VS2022 Professional on Windows 10. The application is compiled and linked with external C++ static library that is compiled with /Z7. The ...
LarsA's user avatar
  • 645
0 votes
0 answers
122 views

Problem description: In Qt5, it was straightforward to work with QML resources in a static library. We simply created a .qrc file to include the QML files along with a qmldir, set QML_IMPORT_PATH for ...
Andrey  Yankovich's user avatar
2 votes
1 answer
98 views

I am building my c/c++ static library for either my ios or android. Before I built the dynamic library using the keyword SHARED and everything worked fine. I crosscompiled openCV for both versions (...
Flippy's user avatar
  • 221
1 vote
1 answer
245 views

Thanks to kiyolee I have a VS2022 solution to build zlib and libzip (git clone of https://github.com/kiyolee/libzip-win-build and https://github.com/kiyolee/zlib-win-build) and I'd like to extend this ...
LegacyDev's user avatar
  • 100
3 votes
1 answer
110 views

I'm working on a very simple Vulkan application. Up until now, I've been linking with the GLFW DLL that I installed via my OS's package manager (and I haven’t had any issues with that). After ...
Kafviq's user avatar
  • 31
0 votes
0 answers
67 views

I have a library B that privately depends on an external static library A. I would like library B to statically link to library A such that any library that links to library B then doesn't need to ...
fontanf's user avatar
  • 249
0 votes
1 answer
163 views

I am trying to include MuParser in my Qt Creator project, but I have been struggling for quite a while to get it working properly. Where I am now, it appears to be unable to find several symbols in ...
Aidan Beecher's user avatar
1 vote
1 answer
362 views

While playing with building WASM modules using clang toolchain I hit a behavior that I'm struggling to understand. Basically, I have a very simple C++ code (in test.cc): extern "C" int foo() ...
Mike's user avatar
  • 48
1 vote
1 answer
83 views

I am writing a wrapper for multiple static libraries that are implementing similar functionality. Two of those libraries share the same class names and (because of their age) don't make use of ...
Tom Haswell's user avatar
3 votes
1 answer
159 views

I'm trying to remove the PDB path in order not to expose my computer's internal directory structure in libraries that are going to be distributed publicly. In EXE and and DLL files I can specify "...
Dan's user avatar
  • 321
1 vote
1 answer
384 views

So I'm trying to use the library utf8proc in my project. I've built the library using cmake, which has created a static lib file (utf8proc_static.lib), which I'm referencing in my Build.cs file using ...
Tarek Khalifa's user avatar
0 votes
0 answers
59 views

I am trying to import a third-party static library as a plugin into unity. I copied the library to Assets/Plugins/x64 folder and set the OS of the Plugin to Windows and architecture to x64. However, ...
Datri's user avatar
  • 5
0 votes
0 answers
172 views

I have successfully built and exported a shared library of mine by following the approach of putting the compiler flags into a separate INTERFACE library, as suggested in the CMake tutorial. I also ...
JtTest's user avatar
  • 381
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
2 votes
1 answer
175 views

So I have made two libraries with gcc and ar: libwa.a and libws.a. When I link them using -l flag in my project. I get this error: /usr/bin/ld: .../lib/libws.a(bhns.c.o): in function `atoi': bhns.c:(....
Wispy's user avatar
  • 189
0 votes
1 answer
131 views

I'm trying to call a Go function from a C program. I have built a static library from my Go source, however, ld is unable to find the function I want to call from the C program. Go code: package main ...
MrMcGoats's user avatar
0 votes
1 answer
123 views

I am trying to start using the GUI library Noesis in my game, and am currently in the process of integrating it into my project. Unfortunately, during linking, all of the Noesis functions I have used ...
William Toft's user avatar
0 votes
1 answer
199 views

I added some symbols into a existing src file, this src file is used by both the main program and an independent library. The added symbols belong to the main program hence locate in a static library ...
PkDrew's user avatar
  • 2,301
0 votes
1 answer
82 views

I have a static library "import" that provides a non-member function import_init(char*) as well as a class ImportObject with the member function Import(char*) that references import_init(...
bugblatterbeast's user avatar
2 votes
1 answer
318 views

I found a lot of questions on the hidden symbol topic in C static library. I tried a lot of things: -> Add strip and optimisation -O3 -s CFLAGS -> Add -Wl,--exclude-libs,ALL" "-Wl,-...
ArthurLambert's user avatar
1 vote
0 answers
600 views

I want to enable asan on my main executable and a shared library that I build locally. main linker flag I think relavent to the sanitizer is -fuse-ld=lld -static-libstdc++ -static-libsan -fsanitize=...
GGinside's user avatar
1 vote
0 answers
110 views

I am working on a desktop Qt (6.2.0) application with UI built on QML (used through resource). I am looking forward to create static build for this application, but it fails because libGLX.a is not ...
user22615348's user avatar
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
2 votes
1 answer
297 views

I'm cross-compiling and I have a collection of assembly language programs in many files. I define a static library, libtop.a to contain them all... add_library(top STATIC /path/to/one.S /...
Lance E.T. Compte's user avatar
0 votes
0 answers
67 views

So I'm currently trying to make xdevapi work with cpp-httplib. This is my current CMakeLists.txt cmake_minimum_required(VERSION 3.5.0) project(http-server VERSION 0.1.0 LANGUAGES C CXX) ...
JR-Bam's user avatar
  • 1
1 vote
1 answer
93 views

I have a static library which I don't control that defines the symbol gettimeofday(). The main function needs to use this function but I don't want it to use the one from the library, I just want the ...
shoosh's user avatar
  • 79.4k
0 votes
2 answers
73 views

I will use a specific, albeit simplified, example to illustrate what I mean. Suppose we are developing a library related to complex numbers. We define two classes, 'cmplx' which represents complex ...
Edgecase's user avatar

1
2 3 4 5
92