Questions tagged [libraries]

Use this tag for questions about software libraries. This tag is NOT for questions about computer programs used in public lending libraries or other brick-and-mortar libraries. Questions asking us to recommend or find a library are off-topic.

A library is a collection of non-volatile resources used by programs on a computer, often to develop software.

Libraries contain code and data that provide services to independent programs. This encourages the sharing and changing of code and data in a modular fashion, and eases the distribution of the code and data. Library files are not executable programs. They are either static libraries that are merged with an executable when the executable is being compiled and linked, making them "statically linked", or they are dynamic libraries that are loaded by a dynamic linker while the executable is running, making them "dynamically linked". The dynamic linker may also allow an application to explicitly request that a module be loaded and to obtain references to routines in the module; this can be used to implement plug-ins.

The above was taken from the Wikipedia entry Library (computing).


Questions asking us to recommend or find a library, documentation or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.

3395 questions
8
votes
1 answer

Trying to use clock_gettime(), but getting plenty of "undeclared" errors from time.h

I am trying to measure the running time of a function using clock_gettime(). I am including time.h, I added -lrt to the Makefile, and added the right path on Eclipse CDT. However, when I try to compile I keep getting these kinds of…
8
votes
1 answer

Nested packages in Java

Firstly I want to create a custom user library with the following structure: src: LibA.pack1 ClassName0.java LibA.pack2 ClassName1.java I have no problem with this one. Later I want to import this library into the other project and …
Denis Korekov
  • 203
  • 1
  • 2
  • 10
8
votes
2 answers

What problem does Peaberry for Guice solve?

I understand the problem that OSGI solved thanks to this question.... What does OSGi solve? And I am already convinved that Guice is amazing so I'm curious what this OSGI integration for Guice known as "peaberry" is supposed to do, it seems to be…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
8
votes
1 answer

Optional header only library

I'd like to write a C++ library which is not-header-only by default but could be used as a header only library defining a NOLIB macro. I've seen two approaches: inline definitions foo.h #if !defined(FOO_H) #define FOO_H #if defined(NOLIB) # …
manlio
  • 18,345
  • 14
  • 76
  • 126
8
votes
6 answers

Hello world without using libraries

This was an onsite interview question and I was baffled. I was asked to write a Hello world program for linux.. That too without using any libraries in the system. I think I have to use system calls or something.. The code should run using -nostdlib…
user205296
  • 89
  • 1
  • 3
8
votes
0 answers

RDF libraries for Scala

I'm looking for a simple RDF library for Scala. So far I've found three, which all seem to have issues: scardf (https://code.google.com/p/scardf/) doesn't seem to be currently maintained, although it has documentation and positive…
mo-seph
  • 6,073
  • 9
  • 34
  • 35
8
votes
4 answers

Are languages really dependent on libraries?

I've always wondered how the dependencies are managed from a programming language to its libraries. Take for example C#. When I was beginning to learn about computing, I would assume (wrongly as it turns out) that the language itself is designed…
CesarGon
  • 15,099
  • 6
  • 57
  • 85
8
votes
5 answers

Programming experiments

I frequently code numerous experiments to test various algorithms, libraries, or hardware. All code, dependencies, and output of these experiments need to be annotated and saved, so that I can return to them later. Are there good common approaches…
Don Reba
  • 13,814
  • 3
  • 48
  • 61
8
votes
1 answer

Bundling dylibs, headerpad_max_install_names not working

I have another OSX application problem. I want to bundle in my final application several dylibs, all of them needed by the application and by other dylibs. I change its references using the install_name_tool, but some of the libraries couldn't be…
QyoDeveloper
  • 203
  • 2
  • 6
8
votes
1 answer

I have no idea why Eclipse can't recognize the java.io library

I have Java JDK 1.7.0_07 installed and I made sure that the Java build path in Eclipse is pointing to the right directory in my system. How come my machine complains of not having the 'File' object available? I have made sure i imported java.io.*.…
tomato
  • 831
  • 5
  • 15
  • 33
7
votes
1 answer

How can I update Spring and Hibernate libraries in NetBeans IDE?

Probably, it's a common and obvious issue, but I couldn't find the answer, so, a short tutorial or a link would be appreciated. My NetBeans has been recently updated, but if I create a new project, that uses Spring and Hibernate, the IDE provides…
John Doe
  • 9,414
  • 13
  • 50
  • 69
7
votes
1 answer

Which Haskell library for interpolated strings

There are many different libraries on Hackage dealing with interpolated strings. Some have poor quality while other vary with number of features they support. Which ones are worth using? Examples of libraries (in no particular order): shakespeare,…
Tener
  • 5,280
  • 4
  • 25
  • 44
7
votes
3 answers

Cmake: linking shared library

I've done this before a couple of times, but somehow I'm stuck this time. I have an executable "myapp" and a own shared library "mylib". In my cmakelists I have the following: ADD_LIBRARY(mylib SHARED ${SOURCES_LIB}) INSTALL(TARGETS mylib…
goocreations
  • 2,938
  • 8
  • 37
  • 59
7
votes
2 answers

Free C/C++ based zip/zip64 library?

After having false starts with poco's zip and minizip (both have issues, minizip can't decompress files larger than 2gb and poco zip corrupts any zip file larger than 2 gigs it compresses) I was wondering if there was anything else left? So any…
meds
  • 21,699
  • 37
  • 163
  • 314
7
votes
1 answer

CMake linking to boost. error LNK2005

Been looking around all day for a solution but no joy. I have a CMake solution with 2 projects. The one is a static library which links to boost, and the other is an executable which links to boost and my own static library. Problem is: In Linux it…
Stefan
  • 71
  • 1
  • 2