python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What is a good technique for compile-time detection of mismatched preprocessor-definitions between library-code and user-code?
Motivating background info: I maintain a C++ library, and I spent way too much time this weekend tracking down a mysterious memory-corruption problem in an application that links to this library. Th...
Jeremy Friesner
Votes: 0
Answers: 3
How to include a static library inside my static library with makefile?
I have the following subdirectories:
libftprintf/
-Makefile(1)
-ft_printf.h
-ft_printf.c
-ft_printf_source1.c
-ft_printf_source2.c
-libft/
-Makefile(2)
-ft_atoi.c
-ft_itoa.c
-...
And wh...
MiguelP
Votes: 0
Answers: 2
What is the difference between using `ar -rc` vs libtool?
I'm new to c libraries and I'm making a project where I'm not allowed to use libtool.
I tried looking online but everything either super confusing or just how to make one with no explanation.
I have a...
MiguelP
Votes: 0
Answers: 1
Linker can only find part of .o in .a file
I am trying to use mingw-w64 to create a static lib on windows.
Catalog
Static Lib src:
// test.h
#ifndef __TEST_H
#define __TEST_H
int add(int a, int b);
int div(int a, int b);
int sub(int a, int b)...
Liu Neng
Votes: 0
Answers: 0