libraries

Compiled C++ program raises “cannot open shared object file” on another system though the file is present

早过忘川 提交于 2019-11-27 06:12:04
问题 I wrote a tiny program that requires some libraries including libboost_filesystem, libboost_program_options and libcurl. I compiled it on my home machine and took the binary to my computer at work to test it there. But there it gives the following error message when I try to start the program: error while loading shared libraries: libboost_filesystem.so.1.42.0: cannot open shared object file But when I search for this file I see that it exists in: /usr/lib/libboost_filesystem.so.1.42.0 Did I

Why there is not a comprehensive c archive network? [closed]

允我心安 提交于 2019-11-27 05:55:51
问题 There are websites as collections of python/perl/R libraries. Why there is not an equivalent one for c? I searched the internet and only found a small website calling itself CCAN. There are only a few libraries in that website. If I need extra libraries for c programming, where can I find them? Is there an well organized website of the c libraries? Thanks. 回答1: If I need extra libraries for c programming, where can I find them? Is there an well organized website of the c libraries? No known

Java Math(s) Parsing API [closed]

非 Y 不嫁゛ 提交于 2019-11-27 03:36:21
问题 Following on from my previous question, I was wondering if anyone knew of any free (as in beer, as in freedom would be nice but not essential) math(s) parsing libraries for Java. I found one called Jep which used to be open-source (ie: written by the community), but now costs $300 upwards (is this even legal?). Any help appreciated! 回答1: You can try the math expression parser from my Symja project. 回答2: You may find my math expression evaluator useful; it's completely free and it's tiny. 回答3:

Text-to-speech libraries for iPhone [duplicate]

冷暖自知 提交于 2019-11-27 03:24:33
Possible Duplicate: Text to speech on iPhone How do I get started with text-to-speech conversion in iPhone ? I want to read the text typed by the user. Are there any available libraries or demos? I have gone through some of them, but I didn't understand where to start it from. For online,you can use my Google-TTS-Library-For-iOS to achieve your goal. Offline iPhone TTS implementation is easy to do. You can see the details here . There are many paid and free iOS TTS libraries are available . They are , Free (Offline/Online) iphone-tts Note: read "HOW TO USE" section . TTSOverview-iOS flite-1.4

Java out.println() how is this possible?

五迷三道 提交于 2019-11-27 01:19:02
问题 I've seen some code such as: out.println("print something"); I tried import java.lang.System; but it's not working. How do you use out.println() ? 回答1: static imports do the trick: import static java.lang.System.out; or alternatively import every static method and field using import static java.lang.System.*; Addendum by @Steve C: note that @sfussenegger said this in a comment on my Answer. "Using such a static import of System.out isn't suited for more than simple run-once code." So please

OpenCV imread(filename) fails in debug mode when using release libraries

我是研究僧i 提交于 2019-11-27 00:58:26
I have some C++ code and everything was working fine with OpenCV except the function imread(file) . It was finding correctly the file and loading the name, but it wasn't loading any data. Mat pattImage = imread(fileName, 0); After some reaserch on the web I realized that I was in debug mode but with the release OpenCV libraries, instead of the debug ones. debug library: opencv_core231d.lib release library: opencv_core231.lib Though it is the tipical stupid error I thought this shouldn't have anything to do, the debug libraries are supposed to allow OpenCV code debugging while the release

how to include libraries in java without using an IDE

不羁岁月 提交于 2019-11-26 22:08:13
How do I import libraries in my java program without using an IDE like Netbeans? In Netbeans I do it this way: How can I achieve the same thing by just using notepad++ or programmer's notepad. As much as possible I don't want to use Netbeans because it would be overkill since I'm only working on simple projects. javac -classpath external.jar myClass.java EDIT: If your main class is in a package package com.mycompany; public class myClass { ... ... then you'll need javac -classpath external.jar com/mycompany/myClass.java and to run java -classpath external.jar com.mycompany.myClass In addition

Convert XML to JSON object in Android

佐手、 提交于 2019-11-26 21:59:36
I have an XML string as shown below: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><Response xmlns="http://tempuri.org/"><UserResult><Users xmlns=""><User> <Message>Success</Message> <UserId>213213213</UserId> <FullName>Abc</FullName> <Roles> <Role> <RoleId>23232333</RoleId> <RoleName>Salesperson</RoleName> </Role> </Roles> </User> </Users> </UserResult></Response> </s:Body> </s:Envelope> Is it possible to convert XML to JSON? Ritesh Gune You can try this way as well. I have tried and tested it myself. Step 1 : Please Download the java-json.jar Step 2: Add this to

fatal error LNK1104: cannot open file 'kernel32.lib'

不羁岁月 提交于 2019-11-26 20:08:25
问题 I've been getting this error ever since I installed the .NET Framework SDK for 64-bit programming on my Visual C++ 2010 Express compiler. I can't compile even a simple program at all because of this single error I'm getting. My platform is x86. Here is a snap shot if it helps: I don't know what more to say. I just downloaded this compiler yesterday and it was working fine. I wanted to upgrade from 32-bit programming to 64-bit so I could work with Assembly, so I downloaded this SDK. I searched

Installing C++ Libraries on OS X

青春壹個敷衍的年華 提交于 2019-11-26 18:36:34
I am trying to get my head around some basic concepts, but I can't seem to figure them out. I am really confused over what it means to install (I think they are called libraries) for C++. I am trying to install OpenCV, but I don't know what needs to happen for it to be installed, how to check, or what really OpenCV is (Is it a library, framework, something else?). My understanding is that OpenCV (and other libraries/frameworks) is distributed as only the source code so that is is able to work cross-platform. Then, after you download it, you have to build it (I don't know what build means