libraries

g++: Compiling without -l flags

笑着哭i 提交于 2019-12-13 22:01:58
问题 Simple question- are these any way to not have to call libraries during the compiling? I mean, I would like to simply call g++ main.cpp without calling g++ main.cpp -lGL -lGLU -lGLEW -lSTL -lMyMother and so on... I know, makefiles or simple shell scripting, but I would like to make it elegant way - call these libraries inside cpp code - something like 'using GL;'. 回答1: Since you're using GCC, you could create/modify a specs file to add the flags you want. If you don't like typing flags, you

Trouble installing Adafruit's DHT11 Python library

喜你入骨 提交于 2019-12-13 20:22:17
问题 I followed these instructions to install the Adafruit DHT11 library (https://github.com/adafruit/Adafruit_Python_DHT): git clone https://github.com/adafruit/Adafruit_Python_DHT.git cd Adafruit_Python_DHT sudo apt-get install build-essential python-dev sudo python setup.py install And I found the library installed under /home/pi (I'm working with a Raspberry Pi 3 ). The file I want to fun is in /home/pi/Desktop so I move the library into that directory. However, I still can't run my python

How to add JFreeChart library to JDK? Error: package org.jfree.chart does not exist

痴心易碎 提交于 2019-12-13 16:17:04
问题 I'm starting with Java after some experience with other languages. For all of them I have been using Atom code editor. And so I have managed with Java but recently I have found out that I need to use an external library JFreeChart. I am using JDK 8 to run Java on cmd (Windows) and I'm not using any IDE. I tried so far: javac -cp "lib/*" ./Test.java with jfreechart-1.0.19.jar and jcommon-1.0.23.jar in lib folder. Using Maven with pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0"

Charts on Windows Phone 8.1

纵饮孤独 提交于 2019-12-13 08:07:44
问题 I'm developing a Windows Phone 8.1 app and I have to draw a chart (line chart). I know there is the WinRT XAML Toolkit but it seems not working for WP8.1 but only for Windows 8.1 apps, like many others libraries. There is a stable library for Windows Phone 8.1 too? 回答1: Telerik's RadCharts are quite good http://www.telerik.com/products/windows-phone/overview/all-controls/chart.aspx 回答2: WinRT XAML Toolkit is only for Apps which runs on WinRT (Store Apps). To draw charts in Windows Phone you

QT 4.8.4 debug libraries not found on Mac OSX

元气小坏坏 提交于 2019-12-13 07:38:46
问题 I'm on Mac OSX 10.8.2. I installed both Qt libraries 4.8.4 for Mac (185 MB) and debug libraries (480 MB) from http://qt-project.org/downloads When I try to debug an application in Qt Creator (2.6.2) I get the following lines in the application output: Unable to read symbols for QtSql.framework/Versions/4/QtSql (file not found). Unable to read symbols from "QtSql" (not yet mapped into memory). Unable to read symbols for QtCore.framework/Versions/4/QtCore (file not found). Unable to read

How to write GTK applications in Visual Studio c++ for Linux platform?

若如初见. 提交于 2019-12-13 07:35:05
问题 I made c++ project for Linux platform in Visual Studio and connected to linux virtual machine with g++, gdb, gdbserver and libgtk-3-dev . But I can't compile program with gtk.h lib. What do I need to do for Visual Studio to detect gtk? 回答1: Visual C++ for Linux builds your application on the target Linux system. Therefore the GTK+ headers and libraries need only be present on the Linux target. However, if you want IntelliSense to work (and who wouldn't) the GTK+ headers need to be visible to

Cannot load 32-bit SWT libraries on 64-bit JVM

天涯浪子 提交于 2019-12-13 04:30:10
问题 My computer is win7 64 bit, and jdk is 1.7.0.21,jvm is 1.6.. and 64 bit I want to run SWT application and export as runnable jar file . When I run the application, it has the exception that Cannot load 32-bit SWT libraries on 64-bit JVM, so I import the SDK as alternate jre just like you point at Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file ) , and in Eclipse, the application can run correctly, but when I edit the bat file to run the jar file, it always has the problem

Java SE and Scala Standard Library - cases when one of them is preferable

荒凉一梦 提交于 2019-12-13 03:58:17
问题 We all know that one can use Java libraries from Scala and vice versa. But even looking over the surface of Java SE and Scala standard library, we can notice that there are many parts in them that solve identical or at least similar problems. The trivial examples are collections, concurrency and IO. I am not an expert in either of two, but I suspect that in general Java SE is broader in size while Scala SL contains more conceptually advanced features (such as actors). The question is, if we

adding user defined libraries to SVN

时光毁灭记忆、已成空白 提交于 2019-12-12 18:17:03
问题 I am developing a project for which I have used a number of external libraries (in jar format). I have added all of the external jars I have downloaded and added to the build path to our version control (subversion) as well. However it has recently come to my attention that a number of the libraries are not in the SVN tree. I have looked into it a bit, and these are the libraries that I have created as user defined libraries and added to the build path in that way, following the instructions

Adding libraries to portable python

僤鯓⒐⒋嵵緔 提交于 2019-12-12 18:05:57
问题 So I'm currently using portable python and I need to add the neurolab library. On command line I tried moving to the scripts directory and running easy_install.exe neurolab Then another command line window opens and it's found the neurolab project on google code and its listing files. Then it zips through a ton of lines and the window closes. However neurolab isn't added to my portable python... Any help would be much appreciated 回答1: This looks like pure Python library. If that is the case