libraries

Cannot add libraries to xtext Project in Eclipse (returns error)

萝らか妹 提交于 2019-12-11 04:13:36
问题 Firstly, I created an xtext project using default values (with the simple Greetings grammar which comes as an example). I created then a .java file with some code (that can be seen below) and added it to the validation folder. I have loaded some jars to the build path as I would do in a normal Java Project. If I run my specific java file as a standalone it will load the libraries and run the code. The java file is quite simple: import org.semanticweb.owlapi.apibinding.OWLManager; import org

problem with calling libraries

时光毁灭记忆、已成空白 提交于 2019-12-11 03:56:13
问题 hi i'm watching a c++ tutorial and instructor includes the libraries like this # include "map.h" #include "set.h" but when i use this code i get error fatal error C1083: Cannot open include file: 'set.h': No such file or directory so i have to write it like this # include <map> #include <set> but now i have another problem when i create an set or map ob , the methods that i can use are different from what is shown in the tutorial for example in the tutorial instructor create and navigate a

Using open source libraries in Android projects

谁说我不能喝 提交于 2019-12-11 03:15:19
问题 I'm a beginner in Android programing, and I'm working with android studio...now i wander what is the best way for installing open sources libraries from gitHub. my question is from organization principles point of view- should i create a new package for every library and put all the library source code as is in that package? should the package be in the source.main.java folder?? (the one that the android studio creates automaticly). sorry for the dumb question...it's just that im taking my

Processing - No library found

自作多情 提交于 2019-12-11 02:56:30
问题 In Processing, I have the following error : No library found for bezierVertex Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' I am trying to run "exemplePPhys2D_geeknessrain.pde", that can be found at https://projets.pingbase.net/libro/projects/hub/repository/revisions/7/entry/EXEMPLES/pphys2d/examples/exemplePPhys2D_geeknessrain/exemplePPhys2D_geeknessrain.pde The error is puzzling, since I did install the bezierVertex.jar library in .\pphys2d\examples

How to write PMPI library for wrapping MPI functions

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:44:02
问题 I am trying to write a PMPI library but am not sure of the right steps (new to libraries and linking). I have written a basic file wrapping the MPI_Send function. Say it's a file called lib.c, what all steps should I do so that when I run a c code with MPI_Send, my wrapper code gets executed? 回答1: On Linux, MPI uses weak links so that MPI_Send gets redirected to PMPI calls. So if you link with your library first and then the MPI library that you are wrapping (i.e. -lmpi is after -lmylib ),

Codeigniter template libraries, with partial views - which one?

风格不统一 提交于 2019-12-10 19:09:29
问题 I started researching this topic for a couple of reasons... 1) To reduce repetitive code in my controllers 2) To configure 3 main layouts used in my website - 1 column, 2 column and 3 column pages 3) To be able to have separate partial view files, and load them accordingly according to the template (main-content, header, footer and sidebar) I have googled this topic and come up with very few examples with user-friendly documentation, and I was hoping for some guidance. http://net.tutsplus.com

Proguard - Can't find any super classes

纵饮孤独 提交于 2019-12-10 18:43:40
问题 I'm getting this error: Unexpected error while performing partial evaluation: Class = [org/apache/log4j/chainsaw/Main] Method = [<init>()V] Exception = [java.lang.IllegalArgumentException] (Can't find any super classes of [org/apache/log4j/chainsaw/LoadXMLAction] (not even immediate super class [javax/swing/AbstractAction])) Error: Can't find any super classes of [org/apache/log4j/chainsaw/LoadXMLAction] (not even immediate super class [javax/swing/AbstractAction]) Part of my proguard

Regex performances between languages or libraries

天大地大妈咪最大 提交于 2019-12-10 16:39:47
问题 I couldn't find anything about this subject, so I wonder if anyone has compared the speed of regex matching among different languages. I would like to know which language proceeds regex evaluations faster because in my current project, I need to evaluate an enormous amount of regular expressions constantly. The choice of the language will be mainly based on this performance. My idea is that C/C++ will be naturally faster but I want to avoid it if possible, and I'm not sure if I'm right. For

Boost 1.55 doesn't work with Visual Studio 2013

让人想犯罪 __ 提交于 2019-12-10 15:55:09
问题 I have compiled the boost binaries correctly and followed all of the instructions, but I am getting a lot of errors, and I don't know why! Here is my 'include' setup: This is the code I used to test boost: #include <boost/asio.hpp> // include boost #include <iostream> using namespace std; using namespace boost::asio; // save tons of typing // These are the values our port needs to connect #ifdef _WIN32 // windows uses com ports, this depends on what com port your cable is plugged in to. const

CMake linking to boost. error LNK2005

谁说我不能喝 提交于 2019-12-10 13:11:22
问题 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 compiles fine with gcc. But in VS2008 I get the following type of linker errors for program_options only. libboost_program_options-vc90-mt-gd-1_46_1.lib(options_description.obj) : error LNK2005: "public: class boost::program_options::options