FAQ Database Discussion Community


The benefit of libraries over object files

libraries
I have been reading topic regarding linux libraries http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html it mentions: "The benefit is that each and every object file need not be stated when linking because the developer can reference the individual library" I am not following this statement. I wonder if someone could have a further explanation or...

“Embed” an assembly 'A' in multiple libraries, so that a consumer cannot see A, but any of the libraries can

c#,libraries
I have a set of libraries that can be consumed independently (compositionally), but each of them share certain functions that I'd like to define in a single 'core' library. I don't want those functions visible to the consumer, which they would be if I ask the consumer to directly reference...

Android, How to include specific library in project that is not a JAR file?

java,android,github,android-studio,libraries
I am trying to include this library in my android project, but there is no JAR file, or compile statement to put into my build.gradle file. I've put their sample code in my project: // Retrieve the CalendarView MultiCalendarView multiMonth = (MultiCalendarView) findViewById(R.id.multi_calendar); but I get a Cannot resolve symbol...

Adding source to a jar library in Android Studio project

android,eclipse,android-studio,gradle,libraries
I have an app which uses a 3rd party library - Simple Facebook - to access the Facebook Graph APIs. This 3rd party library itself internally uses the Facebook SDK as a library. I have few questions regarding this - Since the library is 3rd party, should it also be...

Is it safe to pass memory allocated using “new” to C libraries?

c++,c,memory,libraries
I know that new delete are incombatible with malloc free. Does that mean that I should avoid using new for memory that will be used by a C library? What are things that can go wrong when using new instead of malloc when I will pass the memory to a...

How to deal with Unicode paths in a cross-platfrom C library?

c,windows,unicode,cross-platform,libraries
I'm contributing to a C library. It has a function that takes a char* parameter for a file path name. The authors are mostly UNIX developers, and this works fine on unixes where char* mostly means UTF-8. (At least in GCC, the character set is configurable and UTF-8 is the...

Drupal 8 Stylesheet Won't Render

css,drupal,libraries,beta,drupal-8
I'm trying to make a Drupal 8 theme and no matter what I do, the stylesheet I have won't render. Here's my libraries.yml file: global-styling: version: VERSION css: theme: css/layout.css: {} and here's my info.yml file: name: My Test Blog type: theme description: 'My test theme description' package: Custom core:...

Build/install llvm/clang with both 32 & 64-bit support libraries

clang,llvm,32bit-64bit,libraries,building
My (built from source) llvm/clang install is able to create 32/64-bit executables fine, but when I created the installation it only produced 64-bit libraries (eg, libclang). I've sifted through their documentation, looked through the configure help, etc. As best I can tell my only option is to configure targeting a...

Setting classpath at runtime

java,jar,libraries
I have a java file called EXICodec.java which performs various operations thanks to the jar exificient.jar. They are in the same folder. Here is the structure of the file EXICodec.java : import java.io.FileInputStream; import java.io.FileOutputStream; [...] import com.siemens.ct.exi.helpers.DefaultEXIFactory; public class EXICodec { /* * Main */ public static void main(String[]...

How do I override the email template for django postman?

django,libraries,messaging
I am trying to override the default email for django-postman's notification system. In the docs, it says Default templates are provided with the application. Same as for the views, you can override them, and design yours. However in the code they are used directly from the postman folder, e.g. 'postman/email_user_subject.txt'....

Why doesn't Android Studio recognize Base64.encodeBase64?

java,android,android-studio,libraries
I'm trying run the following code, however I cannot use encodeBase64(). I've already tried to import such libraries using Alt + Enter. How can I make it work?...

How to use Library from GitHub in android App

android,github,gradle,libraries
I downloaded this library to use in my app, however, I can't get Android Studio to do the gradle build now. Anytime I try, I get "error:configuration with name 'default' not found". I've tried several other StackOverflow answers, but I still can't compile. My dependencies (from build.gradle Module: app) dependencies...

Adding Picasso library

android,libraries,picasso
I have some code in which I am using view pager to display drawables. I wanted to seek drawables from parse. For this, I am using Picasso library. I have placed Picasso.jar file in my projects libs folder and now I want help to implement it for my case in...

“ImportError: No module named pygame.base” - Pypy3 and pygame

python,debian,pygame,libraries,pypy
After several trials for install pygame in pypy3, I did it with the bitbucket version, cloning with mercurial and installing this way: "pypypath"/bin/pypy3 setup.py However, when I'll make the import, the following error appears: Traceback (most recent call last): File "/home/rafael/PycharmProjects/pygame-teste/__init__.py", line 3, in <module> import pygame File "/opt/pypy3-2.4.0-linux64/site-packages/pygame/__init__.py", line...

c++ fails to find includes

c++,libraries
Just installed build-essentinals in debian 7. But i noticed the includes for c++ are in /usr/include/c++/4.7... Does anyone why? Includes used to be in /usr/include, as far as I remember... Everything fails now... i.e. main.c:2:20: fatal error iostream: No such file or directory And even if i include it with...

How to reference a library between multiple projects

android,android-studio,gradle,libraries
If I have several android libraries that I want to use among multiple projects, how can I set up my apps to utilize these libraries without having to make local copies? Using the Import Module option in android studio will always copy the project locally, and changes made to the...

C runtime library : what for?

c,operating-system,runtime,libraries
Context: Creating a toy OS, written in assembly and C. X86. 32-bits first, 64-bits then. Currently read how to make a C library and try to understand the underlyings. My question comes from the reading on this page. I read the other SO questions concerning runtime libraries but still don't...

How do you get C++ libraries to work in Eclipse?

c++,eclipse,libraries
I'm not gonna waste too much time moaning about how difficult it is coming from Java, a language where you quite literally click a button and select a file to add external libraries to a project, to C++ where it seems impossible to do without the patience of an owl....

Does installing sybase Linux 16.0 version in silent mode change the libraries

linux,database,installation,libraries,sybase-ase
Would there be any change in the way the library files are generated when we select the different mode of installation of sybase linux 16.0,modes ike silent or console mode.. to be precise do their generation have any effect if we change the configuration parameters..if so how.. I have already...

How to add library to project in Android Studio 1.0.2?

java,android,gradle,android-studio,libraries
First, this is not duplicate. I have browsed answers to "How to add library to project in Android Studio" but found no answer. I cant find src and libs folder. I want to add volley jar to project. Screenshot attached: http://i.stack.imgur.com/2SyUp.png

Angular.js tree library

angularjs,tree,libraries
I am in Angular.js and I would like to know which do you think is the best tree library for angular. Below are the links from the libraries I ' ve already tried and used.. and they are not working exactly as I want. http://jimliu.github.io/angular-ui-tree/ http://www.jstree.com/ So if you are...

Use jstl core as a local resource

java-ee,jstl,libraries,taglib
I would like to download those libraries and import them from the computer to the application. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> How can I do that ? If you want to know why, the server can't reach the Internet, so...

Android Graphics Libraries, creating a message box

android,graphics,libraries
What I want to do is simple. I want to be able to draw a message box to the screen that wraps the height of the box to the size of the text within it. I am using android's canvas objects to do this, but I do not know how...

Using processing sound library

audio,processing,libraries
I would like to use processing sound library: import processing.sound.*; But I have the following error: No library found for processing.sound Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder. How can I install the sound library? I tried to add it via Sketch > Import...

How to copy linked libraries from a code::blocks project to another one?

c++,linker,project,libraries,portaudio
I recently began working with the PortAudio library for C++. To compile even the simplest example I have to link my project to 8 different libraries. I am working with code::blocks as an IDE. I would like to create a new project and tell the linker to link to the...

Android support-v4:22.0.0 Not downloading to correct location?

android,libraries,android-sdk-manager
I'm using com.google.android.gms:play-services:7.5.0 which requires: support-v4:22.0.0. Ok no problem right? -- so I download it via SDK Manager: Now, Android Studio still reports that it cannot find com.android.support:support-v4:22.0.0: Could not find com.android.support:support-v4:22.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar...