General :: Error Compiling A Program With Boost Libraries -> Strerror_r?
Jun 28, 2011
I'm compiling a project that uses boost libraries (1.45.0) for a MIPS target, and when trying to compile with bjam I get the following error:
Code:
libboost_system-mt.a(error_code.o): In function `(anonymous namespace)::generic_error_category::message(int) const':
error_code.cpp:(.text+0x55c): undefined reference to `__glibc_strerror_r'
collect2: ld returned 1 exit status
View 3 Replies
ADVERTISEMENT
May 23, 2010
I installed Boost 1.43.0 on Fedora 12 32 bits, using standard build from the source code procedure:
./bootstrap.sh
./bjam
./bjam install
I see all Boost libraries in /usr/local/lib. Now I build my own program depending on the Boost libraries, and it is built successfully. However, when I try to execute my program, it shows "Library not found" message:
Code:
[alex@localhost ~]$ sixfpdconsole
sixfpdconsole: error while loading shared libraries: libboost_system.so.1.43.0: cannot open shared object file: No such file or directory
[alex@localhost ~]$ ldd /usr/local/bin/sixfpdconsole
linux-gate.so.1 => (0x009d1000)
libboost_system.so.1.43.0 => not found
libboost_thread.so.1.43.0 => not found
[Code]....
View 2 Replies
View Related
Nov 10, 2009
the installation procedure of boost c++ libraries .. i.e boost 1.34.1 on centos..
View 5 Replies
View Related
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
Dec 24, 2009
I've been playing around with this forever now, I am trying to do the example timer using boost asio's example, I keep getting an undefined reference error for boost::system and pthread errors, so after a bit off googling I went back to boosts' to follow their advice it didnt help one bit I know where the boost system lib is /usr/lib and the include directives are in /usr/includes however, when issuing the command they said that needs to be done as in the example with gcc nothing happens just file not find and I am inputting the correct path.
View 1 Replies
View Related
Mar 22, 2010
I am trying to compile a simple remote procedure call program. I am getting an error:
/tmp/ccy0M5rT.o: In function 'main':
rpchighlayer.c.text+0x5c): undefined reference to 'rnusers'
collect2: ld returned 1 exit status
Code:
#include <stdio.h>
#include<stdlib.h>
main(argc, argv)
int argc;
char **argv; {
int num;if (argc != 2) {
fprintf(stderr, "usage: rnusers hostname ");
exit(1);
} if ((num = rnusers(argv[1])) < 0)
{fprintf(stderr, "error: rnusers ");
exit(-1);
} printf("%d users on %s
", num, argv[1]);
exit(0); }
View 2 Replies
View Related
Mar 10, 2010
I got an error that header file sys/ddi.h , did the system is missing something
View 2 Replies
View Related
May 8, 2010
I've created 3 files: swap.h and swap.c then make static library from it
Code:
Then I write 2 program to test this library: test_swap.c and test_swap.cpp
I compile
Code:
What's wrong with this in C++? And how can I make a library that can work both for any C and C++ program?
Here the source code
Code:
Code:
Code:
View 2 Replies
View Related
Feb 21, 2009
I tried to install dropbox on my openSUSE 11.1(KDE 4.0) from a tar.bz2. After i extracted it to a folder Dropbox in Desktop.
I got this error trying to compile.
View 9 Replies
View Related
Apr 14, 2011
I've a FORTRAN program that I would like to compile in my machine. I've gfortran installed, so I issue the command: gfortran asc2bin.f write_geogrid.o
but this error are displayed
Code:
asc2bin.f:3.72:
INTEGER isigned,i,j,endian,wordsize,nx,ny,xllcorner,yllcorner,
1
Error: Invalid character in name at (1)
[Code].....
View 1 Replies
View Related
Oct 14, 2010
I've got an error with compiling a program: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value collect2: ld a retourn 1 code dtat d'excution make[2]: *** [bindings/_yafqt.so] Erreur 1.
View 1 Replies
View Related
Mar 16, 2010
I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the C functions in the static library. Is it possible to do this? In other words, when linking a C program with gcc by using the -shared flag, is it necessary that all all libraries invoked in the program (even low level libraries such as libc for example) be available as shared libraries as well?
View 2 Replies
View Related
Jul 16, 2011
what system variables should I set to what and what options do I pass to ./configure so it builds and install libraries in */lib64 come on a 64bit system should be native 64bit not guest 64bit the guest should be 32bit as in /lib32 for multilib
View 8 Replies
View Related
Mar 30, 2010
I tried to compile C program that uses Openssl libraries on shell but got this error. I guess libraries are not linked properly.
undefined reference to SSL_library_init()
View 1 Replies
View Related
May 19, 2011
Basically, I'm trying to compile program A, which depends on LibA and LibB. LibA would not build with my version of G++ 4.4.3 due to a bug, so I've compiled the latest G++ 4.5 (installed in /opt directory) and built that library successfully (also installed in /opt).
I have LibB on my system already, but it was built with the 4.4.3 version. When compiling my final program, am I going to have issues because the .so files were built with different versions of gcc/g++? Or should I just rebuild a special version of LibB with the later version of the compiler just for that program? I can proceed and just see what happens, but I'm a little confused about how things work in a situation like this.
View 2 Replies
View Related
Oct 7, 2009
I have Fedoara 11 install on my PC. I want to compile program as 32 by g++ option -m32. I have 32 bit library install on my machine which present in path
When i compile my sample program with -c & -m32 option it compile correctly
Then it gives linking error as:
View 2 Replies
View Related
Jul 1, 2011
I am trying to compile a program with mpicc. To compile I use:
CC=/usr/bin/mpicc ./configure
However mpicc's default C compiler is gcc 4.4.2 and I need to use 4.0.0 which I have installed in another directory. I do not (nor can get) root privileges so I cannot edit mpicc's default compiler. Is there an option I can set while configuring?
View 2 Replies
View Related
Mar 21, 2010
how we can we write java programs in java and how we execute it.. to produce output?
View 2 Replies
View Related
Oct 30, 2010
A C program which compiled well in Dev CPP compiler is not compiling in Linux-Fedora.It shows the following error message/tmp/ccy02C6e.o.eh_frame+0x12):undefined reference to '__gxx_personality_v0'collect2:ld returned 1 exit status
View 2 Replies
View Related
Feb 17, 2010
I am new to linux and trying to install one software and it is constantly throwing me an error eventhough I downloaded and latest version of boost and tryed to add it to its path: The error is: "We could not detect the boost library(version1.38 or higher). If you have a stages boost library(still not installed) please specify $boost_root in your envireonment and do not give a PATH to --with-bost option. IF you are sure you have boost installed, then check 7youe version number looking in<boost/version.hpp>"
View 1 Replies
View Related
Jan 13, 2011
A newbie trying his hand with openldap.Disclosure: I tried posting at openldap forum, but my message does not appear in the mailing list-- and I didn't receive anything back from that forum, so please don't flame.I use red hat 5.5.I didn't want to use the openldap that is bundled with and installed by the red hat, so I downloaded and installed BerkeleyDB-4.8.30 and openldap-2.4.23.
I can see that the file libdb-4.8.so is in /usr/local/lib and /usr/local/lib is in my path (in my .bashrc).. so why not "read" it from there?How do I solve this problem?
View 2 Replies
View Related
May 11, 2011
Why many Linux distros are trying to use always the latest versions of the libraries and don't save the old libraries for compatibility? I mean, I can see libtiff for example, i can found a libtiff.so.5 on my /usr/lib, but doesn't store a libtiff.so.4 or 3 just for binary applications or games. For this example, I need libtiff.so.4 for uplink.
That should happen too on the old version of sims for linux, some ID games or others.What's wrong with storing old libraries? PD: Yay, my first post on 3 years!
View 6 Replies
View Related
Feb 22, 2011
During installation of BACCardI (genome assembly validation software), in the final step, we get an error: <baccardi.bin:error while loading shared libraries libqt-mt.so.3: cannot open shared object file: No such file or directory>. So, to fix it, we tried installing the i386 libqt using command <sudo apt-get install libqt3-mt_3.3.6-1ubuntu3_i386>
But, now we get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libqt3-mt_3.3.6-1ubuntu3_i386
E: Couldn't find any package by regex 'libqt3-mt_3.3.6-1ubuntu3_i386'.
View 12 Replies
View Related
Feb 17, 2011
I'm trying to cross compile something and it requires a recent version of Boost. I'm using squeeze and gnome and my updates are all up to date. I could not get through the 'configure' stage with Boost dev packages from the debian repository, so I went to the Boost web site. I thought the package requires boost 1.44 or later, so I downloaded 1.45.0 from the site and proceeded to build and install it. I think I installed it right, using /usr/local/ as the prefix. Back at my main project, I try to configure my build and I get some of the following text and then the configure stops.
Code:
checking for Boost's header version... 1_45
checking for the toolset name used by Boost for arm-none-linux-gnueabi-g++... configure: WARNING: could not figure out which toolset name to use for arm-none-linux-gnueabi-g++
checking boost/date_time/posix_time/posix_time.hpp usability... yes
[code]....
I cannot get past the 'date_time' thing. Does anyone know what is meant by 'flags to link with Boost date_time' ?
View 2 Replies
View Related
Jan 18, 2010
Just i want one clarification regarding building libraries. I have a "c" program. i want to compile that program for ARM processor and i want to build ".a and .so" libraries for that c program.
View 1 Replies
View Related
Jun 22, 2011
I have a platform independent compiler. so, i created the common api's and platform api's using my complier. so i have this library files named cmn_api.a & platform_api.a in my auto/linjtag/lib.(they will be created when we run the makefile of the compiler).
The problem is when i'm trying to run the console application of my compiler. i have a menu.c from which i choose different modes and i operated on that.
When i tried to open one of the executable i'm getting this error:
View 4 Replies
View Related
Apr 12, 2010
I am trying to create a package for Moblin using the Moblin Package creator application in Ubuntu. The RPM package gets created successfully, but when I execute that package in Moblin OS in the terminal I get the following error message: Error while loading shared libraries: libgda-4.0.so.4: cannot open shared object file: No such file or directory.
I understand that the above libraries are missing on my system and I need to add them. My question here is do I have to add them manually after the installation of the package or can the package itself include these libraries and copy them to proper locations when the package is installed. In case the libraries can be included in the package I want to know how that can be done.
View 1 Replies
View Related
May 27, 2010
I am using Fedora 11 (2.6.30.10-105.2.23.fc11.i686.PAE). I got a patch for tpm_tis.c which a module to get my itpm working. And, for this I thought to customise the existing kernel and install new one.
So, I followed the foolowing steps:
In 'make menuconfig' , I have disabled Kernel debugging in the Kernel hacking section.
Then changed EXTRAVERSION to something like .test in Makefile
And, My Idea is to follow these steps:
View 1 Replies
View Related
Jan 4, 2010
I'm currently using Fedora 12 with kernel 2.6.31.9 and I was trying to upgrade to 2.6.32.2. These are the steps I followed. After rebooting and choosing this kernel from the Grub menu, I'm just greeted with a black screen with a blinking cursor and it won't proceed beyond that.
These are the commands I issued. I received an error on the first make modules about the mismatch. I then ran CONFIG_DEBUG_SECTION_MISMATCH=y and once finished I ran make modules again and it completed successfully.
Code:
Downloaded kernel package 2.6.32.2 from www.kernel.org
untar archive
make menuconfig (no changes made, saved config file)
make
[Code]...
View 9 Replies
View Related
Oct 14, 2010
New to this kernel stuff But not too new to C/C++. I'm trying to compile the linux kernel on a PC, that is running Windows XP 32 bit, using Cygwin. I keep getting the error saying:
Error: Not ELF
make[2]:*** [scripts/mod/elfconfig.h] Error 1
make[1]:*** [scripts/mod] Error 2
make:***[scripts] Error 2
Every time I try to compile it from the main directory of the source, which I hope is what I'm supposed to do, I always get this.
View 14 Replies
View Related