Questions tagged [unix-ar]
The Unix archiver utility, used primarily for maintaining static libraries. For questions about augmented reality, use [augmented-reality], not this tag.
unix-ar
35
questions with no upvoted or accepted answers
5
votes
1
answer
754
views
Linking to thin archive on Snow Leopard
I am attempting to link a thin archive that combines two archive libraries to a C program.
I constructed two simple hello world functions and built an archive with the commands:
ar rcs lib1.a lib1....
3
votes
0
answers
760
views
Link with archive that contains other static library archive files
I am trying to use the NBIS library from NIST:
http://www.nist.gov/itl/iad/ig/nbis.cfm
NBIS is composed of several different related libraries that they compile into multiple archive files. They ...
3
votes
0
answers
3k
views
Trying to merge two static libraries
I have the problem that I want to have a static library of my code because I use the code a lot. It's c++ (otherwise a shared would be an other choice). But that code depends on other static libs. Due ...
2
votes
0
answers
99
views
C++: ar -x loss symbols
I am not sure if I have some misunderstanding on ar -x command, here's how to repeat the problem:
Step 1. make sure there are symbols are there:
$ nm librocksdb.a | c++filt | grep -s 'rocksdb::...
2
votes
0
answers
123
views
Cabal fails to build detailed-0.9 test suite
I'm trying to build a package with a single test suite:
name: test
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
library
-- exposed-...
2
votes
1
answer
1k
views
How to determine where 'ar' is being called in Makefile?
I'm trying to build Git on OS X. Git depends on libidn2. libidn2 2.0.0 fails:
make all-am
make[3]: Entering directory '/Users/jwalton/Build-Scripts/libidn2-2.0.0/lib'
CC idna.lo
CC ...
1
vote
0
answers
289
views
Link OpenSSL FIPS compliant (libcrypto.a) with another static library
I am using OpenSSL 1.0.2t with FIPS Object Module 2.0.16. I have taken the source code and complied both and I have libcrypto.a and libssl.a generated.
In my use case I need libcrypto.a. I have a ...
1
vote
0
answers
303
views
Different ways of linking archive
I have an archive named libapi.a which is being generated by makefile.
This libapi.a depends on some of the boost libraries like libboost_system.a, libboost_filesystem.a and libboost_datetime.a
Now in ...
1
vote
1
answer
357
views
Creating static archives with ar or libtool fails on jailbroken iOS
I'm trying to build and run Go on a self-hosted jailbroken iOS device (Corellium virtual devices). Go bootstraps and can build and run regular binaries. However, Go archives fail to build because ar ...
1
vote
0
answers
2k
views
Could not determine ar interface
Got error when compiling mpich. What does this mean?
configure: error: could not determine ar interface
1
vote
0
answers
158
views
mismatched file size in unix ar command
I'm working on a C program that can read the contents of a unix archive file. I have an interesting bug that maybe I don't understand so I thought I would ask in here.
It seems to me that the file ...
1
vote
0
answers
305
views
Weird ar linking error
Make the project from scratch (works)
Try to remake without changing any files (doesnt work)
Remove static library
Make again without changing any files (works)
Make again without changing any files (...
0
votes
0
answers
184
views
Codelite C++ build suddenly not working. ar can't find GL
I've been writing a mediocre game engine using SFML and OpenGL. Up until recently it has been building without difficulties, except for my own typos, bad code, etc. I'm building it as a static library,...
0
votes
1
answer
955
views
How to update shared library file
I'm trying to add a .lo object file compiled through libtool with clang into a shared library file.
$ libtool --tag=CC --mode=compile clang -c newobject.c -shared
Is there an equivalent command to
$...
0
votes
0
answers
65
views
Static library with MinGW doesn't update correctly when building executables
I made a little makefile to build a static library made of several object files. Then I made a test program test.exe and I built it with the same makefile.
Executable is made of test.c and the static ...