Programming :: Compile With ATLAS And Boost Numeric Bindings?

Jan 10, 2010

I am trying to compile a file for matrix multiplication with ATLAS and Boost Numeric Bindings. I only get a long list of error messages. What am I doing wrong? I am using Ubuntu 9.10, g++ 4.4.1.

Code:
#include <numeric>
#include <complex>

[code]....

View 1 Replies


ADVERTISEMENT

Slackware :: Have "boost" Newsbeuter Will Not Compile?

Oct 9, 2010

I've been trying to compile newsbeuter-2.3 on a Slackware 11.0system. I think the problem is an #include <tr1/memory> line. Ihave a "boost" package installed from slacky. Have tried #include <boost/tr1/memory> but compiler can't find that either.

I get the following errors:
***********************snip***********************
c++ -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -DLOCALEDIR="/usr/local/share/locale" -I/usr/include/libxml2 -I/usr/local/include -o

[code]....

View 4 Replies View Related

Programming :: Include Boost In Eclipse Project?

Dec 14, 2010

I'm using Eclipse to build a small c++ program using boost.

Code:

#include<iostream>
#include<string>
#include <boost/regex.hpp>

[code]....

I can right click on boost::regex and it takes me to the header file regex_fwd.hpp, but when I go to build it, it gives me the error:

Code:

DescriptionResourcePathLocationType
/usr/include/boost/regex/v4/basic_regex.hpp undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> >

[code]...

View 6 Replies View Related

Programming :: SQL -any Value For Numeric Or String Field?

Feb 12, 2010

how do i ask in a query for any numeric or string field? It may not have any meaning, but i need it to fill a toplink DataReadQuery in java....Something like " select * from table where table.fieldA='?'

View 2 Replies View Related

Programming :: Eclipse Helios / C++ - How To Include Boost Libraries

Apr 5, 2011

I use OpenSuse 11.3, Eclipse Elios for C++. What do I have to do for using boost? I put #include <boost/regex.hpp>, but it can't find the file. What variable do I have to use?

View 3 Replies View Related

Programming :: Bash Thinks String Variable Is A Numeric One

Jul 7, 2011

Bash 3.1.7

Code:

Code:

Code:

I think read A1 A2 makes A1, A2 string variables. Then, when A2 gets the value 01, '01' should be a string. But for some reason bash takes it as numeric. I know there are no types in bash.

View 11 Replies View Related

Programming :: Checking Shell Script Variable Contain Numeric Data

Mar 28, 2009

I need to check whether a shell script variable contains non-zero numeric data to proceed. The variable should contain numeric values, but may in fact contain zeroes, blank space or nothing. So far, I have tried various combinations of:

Code:
if test $variable
then
if test $variable -gt 0
then
echo "good data exists"
else "no good data exists"
fi
fi
It partially works, but I get either "too many arguments" or "integer expression expected".

View 2 Replies View Related

Programming :: BASH: Read + Define + Modify A Numeric Value From/to A File?

Mar 25, 2010

I want my bash file to read from "input.dat" the two values emin emax. My input file looks like that:

#cat input.dat
!Energies
emin 10.00 !minimum energy
emax 30.00 !maximum energy

Now this seems to be not so hard with the command awk

#!/bin/bash
awk '{FS=" "}/emin/{print $2}' input.dat
awk '{FS=" "}/emax/{print $2}' input.dat

[code]....

So far so good. Now, I want to define two variables (e.g. e1,e2) in the bash file, so that their values would correspond to 00.00 and 30.00, as read from the input file. This one I have not found yet, thus asking for your advice. At the end, writing echo $e1 $e2, I should get 10.00 30.00 This is even harder to me: I want to replace the values emin,emax in a new file "modify.dat" which looks like that:

...
c---- energy interval
emin = 1.00
emax = 2.00
...

with the values e1 and e2 I have in my bash file. In other words, I want to call "modify.dat", find these two lines and replace the numeric values with the e1 and e2. At the end, my file should be like:

...
c---- energy interval
emin = 10.00
emax = 30.00
...

View 3 Replies View Related

General :: Error /usr/local/atlas Is Read Only File System

Sep 9, 2010

I have a computer in the university and I have root access to this pc. Iam trying to install Cblas library on it. But it gives me a starnge error /usr/local/atlas is read only file system. I tried doing mount -l and it gave me that appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......) I think what it means that the main server directory is mounted to /usr/local and it is read only. So, how can I fix this problem to separate the two and make my /usr/local separate

View 13 Replies View Related

Programming :: Cmake: Using Find_package(Boost) When FindBoost.cmake Is Not In The Default Location?

Feb 23, 2010

I am attempting to compile some code on a cluster where I do not have root access (and is missing many of the libraries I want), and hence have had to create local builds of the boost and opencv libraries (i.e. in /home/username/usr/local). In particular, my cmake depends on:

Code:

find_package(boost)

which my normal development machine finds in:

Code:

/usr/share/cmake-2.6/Modules/FindBoost.cmake

On the cluster I have a version of FindBoost.cmake at:

Code:

/home/username/cmake_modules

How can I tell CMake to look for FindBoost.cmake in that directory, since neither the cmake file, nor the boost install is in the standard location? I've modified the FindBoost.cmake file to make it search in the locally installed boost libraries.

[code]....

View 3 Replies View Related

Slackware :: KDE 4.5.4 Bindings Build Fails

Dec 4, 2010

I'm trying to build/install KDE 4.5.4, but I run into problems with the bindings package. Build fails with the following:

[Code]....

I'm building using the KDE slackbuild from sources dir, with the new KDE packages. edit: Well I decided to just take the risk of a not working KDE and commented out the bindings package. All other packages build fine. After this I crossed my fingers and rebooted, KDE loaded up. I gave the bindings package another go, and to my surprise it did build now. Got KDE up to date and it seems to be running fine.

View 6 Replies View Related

Slackware :: Qt4 And Plasma Ruby Bindings

Jun 4, 2010

I've slackware 13.1 and anytime I try the following commands in irb:

Code:

require 'rubygems'
require 'Qt4'

or

Code:

require 'rubygems'
require 'plasma_applet'

i receive the following error:

LoadError: no such file to load -- Qt4
LoadError: no such file to load -- plasma_applet

now I'm wondering what packages or gems I need to make it work?

View 3 Replies View Related

General :: Compiz Key Bindings Do Not Work In Virtualbox VM

Feb 3, 2011

I'm running Ubuntu in a virtualbox VM on windows, and none of the key-bindings that I define for compiz plugins (such as Grid and Put) work. I've tried letters and numbers by themselves, as well as combined with ALT, CTRL, and Super, but all fail.

View 1 Replies View Related

Ubuntu :: Key Bindings Suddenly Changed In Emacs?

Feb 22, 2010

I turn on my laptop running 64-bit karmic (if that helps anyone), open GNU Emacs 23.1.1 with the org files I've been working on, and for some reason it is not recognising standard key bindings, for the first time ever, with no reason I can conceive. What does "M-kp-enter is undefined" mean when it seemed well defined not long before? It seems using Esc-enter still works.. can anyone suggest if there are any config files I might need to edit, or what else could have gone wrong?

View 1 Replies View Related

Ubuntu Multimedia :: Pymtp Bindings Out Of Date?

Sep 1, 2010

I have recently been trying to hack around a MTP plugin for the Exaile music player, but the first hurdle was getting any basic MTP operations to succeed. The following python calls caused a segmentation fault:

Code:
>>> import pymtp
>>> dev = pymtp.MTP()
>>> dev.connect()
>>> tracks = dev.get_tracklisting()
Segmentation fault

I had a look at pymtp 0.0.4.1-1 and I think that it is not in sync with the libmtp8 package (version 1.0.2) I have installed on my xubuntu 10.04 system. I have looked at the libmtp.h file for 1.0.2 and made some changes to pymtp which appear to do the job - no more crash, but I haven't yet tested the other parts of the interface. Feel free to use the attached patched file. I will try to get it to the package owner for further testing and hopefully an eventual package update.

View 1 Replies View Related

Ubuntu :: LXDE -- Edit Key Bindings And Startup Applications?

May 9, 2011

I have (normal) Ubuntu 11.04 installed and I used the Ubuntu Software Center to install LXDE. I'm stuck on 2 problems though, and I'm not sure how to fix them.1. How do I change key bindings in LXDE? Specifically, I want to use Super+up/down/left/right change between workspaces, not the defaultCtrl+Alt+up/down/left/right. I have a script that I have set to auto-run on startup in my standard Unity session; I created a script and added it to the startup programs list there. However, I need to remove that script from LXDE ONLY, so that in the Unity session it will continue to run, and in the LXDE session it will NOT run

View 2 Replies View Related

Ubuntu :: Install A Version Of The GStreamer Python Bindings Greater Or Equal To 0.10.19" Without The Quotes?

Sep 29, 2010

When i try to run pitivi i get the following message and it closes down. "Install a version of the GStreamer Python bindings greater or equal to 0.10.19" without the quotes.What do I need to do? Where is the deb package for gstreamer needed?

View 9 Replies View Related

Programming :: Can't Compile OS Example?

Apr 22, 2010

I am following this tutorial:But I just can't get it to compile. What do you think is wrong?

Code:
$ nasm -f elf -o loader.o loader.s
[michael:test]$ gcc -o kernel.o -c kernel.c -Wall -Wextra -nostdlib -nostartfiles -

[code]....

View 14 Replies View Related

Programming :: Use G++ To Compile QT Program?

Dec 26, 2010

My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?

View 5 Replies View Related

Programming :: Compile A Program With Gtkmozembed?

Apr 21, 2010

i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile

[Code]...

View 1 Replies View Related

Programming :: Compile Package C++ With GNU Compiler ?

May 26, 2010

compile package C++ with GNU compiler under Linux, I can share my program's

View 3 Replies View Related

Programming :: Cannot Compile C++ Code In Terminal

Feb 13, 2011

I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.

View 4 Replies View Related

Programming :: Can't Compile C++ App *** Exited With Status: 77 ***?

Jan 7, 2009

I'm trying to compile a c++ application in KDevelop in Ubuntu 8.10. I get this error on Distclean:

aclocal
autoheader
automake

[code]....

View 19 Replies View Related

Programming :: Can't Compile F77 Code Using Gfortran Or G77

Nov 17, 2009

I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using

Quote:

$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o

but the linking fails with

Quote:

$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here

[code].....

View 2 Replies View Related

Programming :: Compile And Install From A Tarball?

May 2, 2011

I recently downloaded a tarball which contains a .src file for a program to convert .ttf fonts to .cxf fonts for use in Qcad drawings. how to compile and install this program in linuxmint 9 or ubuntu lucid. What I downloaded from the ribbonsoft.com website is a tarball called ttf2cxf-0.0.0.1-src.tar.gz. It contains a directory /ttf2cxf-0.0.0.1-src, which contains three files: main.cpp, Makefile, and ttf2cxf. I can post the contents of these files. This is not a high priority problem but i have been messing around with this for a while and have made no progress.

View 9 Replies View Related

Programming :: Compile Function C To Java?

Apr 6, 2010

i want compile function c to java under linux. the bashfile comp :

$ cc -fpic -c $(SRCS)
$ ld -shared $(OBJS) -o module.so

i see in www.swig.org

$ comp -java example.i # line 1
$ gcc -c example.c example_wrap.c -I/usr/java/jdk1.6.0_17/include -I/usr/java/jdk1.6.0_17/include/linux # line 2
$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.so #line 3

error line 3 :

/usr/bin/ld: unrecognized option '--add-stdcall-alias'
/usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status

View 1 Replies View Related

Programming :: Cannot Compile Against ICPC Headers?

Feb 10, 2010

This compiles against g++ template headers but not against the icpc headers.
Code:
#include <string>
#include <vector>
template <typename T>
class MyList : public std::vector< T* >{
};

template <typename T>
class MyListIterator : public MyList<T>::iterator{
};
int main(){
MyListIterator< int > test;
return 0;
}

View 4 Replies View Related

Programming :: How To Compile Program For Windows

Feb 10, 2010

I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.

please let me know how to compile the program for windows

View 8 Replies View Related

Programming :: Unable To Compile Class For JSP?

Mar 15, 2011

My new guy has created several functioning webpages on his machine with TOMCAT 6 with Sun JDK, yet our machines use TOMCAT 5.5 with Open JDK, which his webpages don't show. Do you have any idea how to make them work? The error showing in a browser:

Code:
HTTP Status 500 -
type Exception report
message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception org.apache.jasper.JasperException: Unable to compile class for JSP:

[Code]...

View 2 Replies View Related

Programming :: Compile (gcc) Using Code From Other Projects?

Jan 16, 2010

I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:

Code:

#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();

[code]....

But I don't know how to compile it. I was trying (naively) something like:

Code:

$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt

But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved