Ubuntu :: Any Link To Get Source Code For PThread Library?
Aug 27, 2010Can anyone please let me know of a link where I can find the source code for Linux pthread library?
View 2 RepliesCan anyone please let me know of a link where I can find the source code for Linux pthread library?
View 2 Repliesi am trying to link a code in C++ with tinyxmldll library:
Code:
master out # ls -la
total 1388
drwx------ 2 root root 4096 May 10 14:02 .
drwx------ 6 root root 4096 Apr 5 08:35 ..
[code].....
When i link, i get 'undefined reference' error:
Code:
master hneat # make nt
g++ -g -DTIXML_USE_STL -DHCUBE_NOGUI -fPIC -I./hneat -L./hneat -I/home/niko/hyperneat3/HyperNEAT_v3_0/JGTL/include/ -I/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/include/ -I./Experiments -I../ -I./ -L/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/out/ -L/usr
[code]....
The problem is, the symbols contain weird characters. How do I tell g++ that it should ignore these characters and link the functions correctly?
I am trying to write suitable .pro file for my application. I need real-time library. Have you some ideas how to do that? I just need the line for linking with real-time library...
View 2 Replies View RelatedUbuntu 9.10 is the running system. I need to install a library (LibRaw-0.8.5) from source code as the version I need is not present in the repositories. So far, I managed to extract the .tar.gz, but now I have no clue how to install it and make it work with DigiKam... I tried the sudo make install stuff, but it seems I don't do it right or what
View 12 Replies View RelatedWhere do i found source code of c library files in ubuntu.
View 2 Replies View RelatedI have downloaded lzo-2.00 package and have installed it linux kernel 2.6 version. Now I want to include the lzo library in the source code of linux.According to the instructions given in the package, I have copied the files (minilzo.c,minilzo.h,lzoconf.h,lzodefs.h)in the source directory(/mm),added minilzo.o to my Makefile and have included(#include minilzo.h) from my program. But when I compile the kernel,I am getting errors.
Errors:
->limits.h:No such file or directory
->assert.h:No such file or directory
I am very curious about updated graphics in GRUB2. So I want to compile and load grub2. Where can I get the grub2 source code. While browsing I got two links [/COLOR]
[URL] [URL]
First one has upto 1.98. Second link is not working. Can someone point the link where GRUB2 is available.
im writing a cross-platform software (linux/solaris/mac/bsd) so i was wondering, how portable is pthread library? out of 10 linux distros, how many will have it by default? and does it exists on mac/solaris/bsd by default? or user will have to install it?
View 6 Replies View Relatedi am already a little bit familiar with linux and now i want to know better the linux OS. i have downloaded the source code of the krnel from the kernel.org and i dont understand the linux source trees organization, so can somebody do me a favor and give me a link to some internet page (or at least a book) that explains that?? i have searched in the internet with the tag:::linux source trees organization and i have not found nothing interesting
View 1 Replies View RelatedI want to see the source code of smplayer software.from where i can see source code of open source softwares?
View 9 Replies View RelatedI think that the solution is very simple, but I cannot reach this solution. I'm trying to build an B.so that uses A.so.
A.so is compiled using C;
B.so is compiled using C++;
Inside "Aso.h" file I'had declared:
Code:
#ifdef __cplusplus
extern "C" {
#endif
[code]....
There's no error to compile that, this library seems to be compiled correctly, but using the "nm" command the Aso.so functions appear with "U" of undefined. Trying to build an executable using the Bso.so library, I got this error: /lib/../lib/libBso.so: undefined reference to `foo(int, int, int)' I think that to solve this problem it's only link the Aso.so with the .o files generated at the compilation phase of my Bso. Using the "ldd" command I'm able to see that Bso.so depends on Aso.so, so what am I missing?
Currently, I am trying to use the Kdevelop4 in linux debian to make some debugging on a simple project. I added the <db.h> in the text editor and it is working. Unfortunately, when I am trying to build an "undefined reference to db_create error". So how to cope such error and where I have to add the searchable link libraries in Kdevelop4.
View 3 Replies View RelatedI would like to make gcc to link one lib (pthread in the example) statically, and the rest dynamically.
(See the example .c file at the end of this post.)
compiles fine, but every lib is linked dynamically.
Now every lib is linked statically
Not a dynamic executable
I would like to link the libpthread statically and the rest dynamically. Is it possible?
[url]says if I give the full path to the .a lib then it will be linked statically:
So for me it does not work.
On other sites I found that I should use -Wl,-Bstatic -lpthread -Wl,-Bdynamic, but it also doesn't work:
So, how can I do that?
Machine: Linux 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux SLED 10
As an example I used a little demo program from [url]
Here is the code:
I'd like to get path of one library to link it dynamically in my program. Probobly the best way would be to add macro to my configure.ac file.
View 2 Replies View Relatedi try to compile a c code which uses SSH library,but i get this error
Code:
libssh.h: No such file or directory
i searched and i found that This happens if a library used for linking is not present in the standard library directories used by gcc.
By default, gcc searches the following directories for header files:
/usr/local/include/
/usr/include/
and the following directories for libraries:
/usr/local/lib/
/usr/lib/
i update my libssh from libssh-0.4.2-1.fc13.i686 to libssh-0.4.6-1.fc13.i686, and there are files called libssh.so.4 and libssh.so.4.0.2 in /ur/lib, but i still can't compile it with this command:
gcc test.c
Is there a library to send mail via c/c++ code in linux ? Or what can I use ?
View 1 Replies View RelatedI need to create a test setup in my lab that will run power supplies for an indefinite amount of time. It could be anywhere from days to months at a time. This rules out matlab, as its memory leaks won't let it run that long, and LabView is too buggy (at least in my experience. and it has memory leaks as well). So I need a way to program GPIB (since that is the interface these power supplies have). So far, PyVISA seems to be the most likely way to be able to do this.
However, I keep receiving the following error:
Code:
pyvisa.visa_exceptions.VisaIOError: VI_ERROR_LIBRARY_NFOUND: A code library required by VISA could not be located or loaded.
Searching around, this apparently means that I'm missing GPIB drivers, but I'm not.
linux-gpib installed, and the card appears in /dev.
That being said, every now and then the gpib interfaces simply disappear from /dev,and the only way I can get them back is to reinstall linux-gpib. Also, has anybody else succeeded in working with GPIB outside of LabView and Matlab, and if so how? I'm also open to other options, having made no progress on this after over a week. The two real requirements is that I need programming interface to be scpi commands, and I would prefer to code in python or C/C++.
I am trying to use a shared bzip2 library in a program I'm writing. For the life of me I can't figure out the correct gcc switch to link it in. I've tried pkg-config, but i don't know the name of the .pc file. Is there any rule for these things?
View 3 Replies View RelatedI have a question about choice of library to be used on low-end systems. I've so far been using SDL to create a user interface for a media system, and it's been working fantastically on my development machine, a dual core 2GHz machine with 2Gb RAM and an Intel graphics card. I get a frame rate of up to 100fps, and there is no slowdown at all. However when I run the exact same program on an embedded motherboard, the VIA EPIA EN15000G, which has a 1.5GHz processor, and a VIA P4M800 graphics chip (possibly the worst graphics chip ever invented as far as Linux support goes), I get a frame rate of less than 5fps. This makes the entire program totally unusable, and I've been left in a bit of a pickle. I've looked into alternatives like SFML, but that looks like it won't help at all on an unaccelerated system. I've also tried using OpenChrome drivers on it, and that made a negligible or nonexistent difference.
Can anybody suggest anything I could look into re: optimising my code or changing libraries goes? I already use SDL_DisplayFormatAlpha to convert my surfaces to the correct format. I haven't looked into Dirty Rectangles yet massively, as there's not much movement at all on the GUI, just the changing of button states.
Would use of OpenGL help at all if using the OpenChrome driver, which apparently has 2D acceleration? I'm more than willing to totally overhaul the code if needs be.
is there a way to debug my library files from DDD? Basically a way to pass the paths to DDD so I can view the source etc. I'm having a segmentation nightmare, which only crops up about every 10 or so starts, I know it's in one file in a library. I could move the source file into my general code to debug, but am sure there's a way in DDD.
View 1 Replies View Relatedanyone got a link/source for a decent cpu stresser app? did a search and didnt really find anything :/
View 9 Replies View RelatedI have been using Linux for 2 months, specifically Ubuntu, and been wondering where the source code is. Not only do I wonder where the kernel source code is but also where the source code for the installed programs are.
View 2 Replies View RelatedIs there a good open-source Unicode string library for C++ (or C)?
View 4 Replies View Relatedwhere can i get the full source code of ubuntu ?
i want to study it and mayb il make my own os in the future.
How to edit Ubuntu Source code to edit Ubuntu how I want? I know I am legally allowed to modify the code but I do not know how?
View 2 Replies View RelatedWhere can I obtain the source code for Ubuntu 10.04.1 LTS?
View 1 Replies View RelatedI downloaded wine from a windows laptop, but because you have to have a computer running Linux to download it as a .deb package, I had to download the source code as a tar. bz2.
Does anyone know how I compile it and make it executable?
In mandriva 2008 platform I have installed gcc-g77, liblapack, liblapack-devel, libblas, libblas-devel, arpack, arpack-devel and arpack-static packages. When I link *.f code and these libraries, using g77 compiler with -llapack -lblas -larpack options, everything work. Then when I replaced g77 by gfortran compiler, to be able to work with double precision complex arithmetic, I have got a number of undefined references errors:
[code].....
It looks as if I need to install f95 lapack and arpack libraries. Does anybody know if such rpm packages exist? I cannot find them in the net. If they exist, where is it possible to download them?
I was trying to install VPN client for my Ubuntu 9.10 64-bit. During the installation process the terminal reads:
"Directory containing linux kernel source code [/lib/modules/2.6.31-21-generic/build]"
On that I pressed enter for the default option (in bold). After a few more steps I reached the following error:
Making module
sh: Can't open ./driver_build.sh
Failed to make module "cisco_ipsec.ko".
[/lib/modules/2.6.31-21-generic/build] is the location where the installer expects the kernel source to be (I am guessing). So unless I correct the terminal (by providing the location of the kernel source), I think I will keep on getting the same error message.
So to get the kernel source I visited: [URL]From there I copy pasted the command:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
Everything went fine, but even now I don't know if at all I have a kernel source and where it exists on my machine.
I am following these instructions to install gnu backgammon. However I am doing this for the first time and I don't know how to get their source code from their site (here). Do I download everything?
View 2 Replies View Related