General :: Program Includes .so Which Includes .a?
Mar 19, 2010
I have prepared a static lib(.a) comprising 2 function definitions. I have created a different shared library(.so) comprising 2 more functions. The two functions of .so use the functions defined in the .a file. That is, the .so file uses the services of the .a file. Next, I create an executable that uses the shared library(.so). When I build my executable, it needs to be linked with the .a file as well. it gives me undefined reference for the functions defined in the .a file. Why is that so? I am posing this question because, the .a file has already been included(static linking) while bulding the .so. Is there any workaround so that I need not link the .a file with my final executable?
I'm using Plesk as my control panel. After the PIX was installed, I mapped the old IPs to the new IPs. Port 80 is OPEN. My PHP includes won't work when I use the domain, actually nothing works when I use the domain infront of it. I tried adding 10.0.0.1 [URL] to /etc/hosts and still had no luck
My website can`t open because of the error, Parse error: syntax error, unexpected T_STRING in /home/dodonet2/public_html/includes/config.php on line 45.
If I use my current iptables firewall settings my php includes from my own site get blocked by the firewall. If I use accept all tcp and udp it still does not work. If I use a default policy of accept all, then the php includes work which is not safe. I am running a drupal 6 site on a centos 5.3 vps with apache 2.2.0 and php 5.2.6 w/ safe mode on. He is my current iptable configuration.
Now I'm porting a WIFI driver to my platform, MIPS little endian, Linux-2.6.18, uClibc environment for STB. And I'm experiencing some strange symptom. As you know, there are some kind of include files that system provides such like GCC-provided(usually in /usr/include), LIBC-includes(/usr/include), Linux-includes(${LINUX}/include/linux), ASM-includes(${LINUX}/include/asm) and so on, and there are many files resides different directories as the same name (e.g. time.h, types.h, limits.h ...) and many of them has different contents.
I'm confusing because that some include files are read from unexpected directories. The command line is like following. $ cross-gcc -o Target -I$(GCC_INC) -I$(LIB_INC) -I$(appl_inc) -isystem $(LINUX)/include -isystem $(LINUX)/include/linux Source.c
And some symbol means:
GCC_INC: directory for GCC include files. LIB_INC: directory for LIBC include files. LINUX: Linux kernel directory.
[code]....
As shown above, some include files are read from unexpected directory. This causes some severe compile errors. I've verified these by adding '-E' to the command line. How can I order GCC to read files from where I'm expect?
I've been trying to install a development version of kde 4 and when i attempt to install kdelibs it tells me that it can't find the phonon libraries. Does anyone know what the trouble might be? I'm using Debian Sid.
Here's my current regular expression(used in sed):sed 's///!Start.*//!End//g' in > outThe only problem being that the wildcard . does not work across multiple lines,
First of all, let me just state that i want to make a small server for my home.. which includes hosting a website and a small FTP server.
Now as far as ease, stability, use, etc.. just overall, which would be more ideal to use for this?
My top choices are FreeBSD and Ubuntu Server.
However, I do not know which of these to go with, since this is my first time setting up a server. I hear BSD is really best for web servers, but I would like to hear what the people at LQ has to say.
I know Ubuntu Server would probably be more easy to set up, but how is it in terms of stability and speed?
As per our requirement, I need to implement a Secure FTP server for around 500 users which includes security level on both - Transfer and Rest data. Apart from this I also need the following features -
1. Size quota on Users & reminder mails for the same 2. Password expiry notifications and user interface to change their password within specified time interval 3. Aging of data - After specified time, data will be moved to some other location from their home directory 4. All type of log maintenace for each file and user and log exporting 5. Uploading & Downloading speed consistency as per server level. 6. Read-write interface for user and read-only interface for their client for the same account. 7. Backup and Recovery options.
As of now, I am using VSFTPD which does not give these much of features in combine.
Before i wiped windows (and the dual-booted slackware on it to make a slackware only hdd) i (sort of) backed up my files. I put something into my /etc/fstab that wiped /tmp/ when i shutdown/rebooted.
I would like to know what shell command I could use for finding a phrase (which is a URL) in many files, with a different phrase. I have tried the "sed" command, but it does not like the forward slash.
Recently I have moved to F11. While I am trying to install directFB explicitly, I am getting error related to X 11 dependencies. It could find no includes files under the directory /usr/include/x11/. But x11 libraries are available in the system. I remember that, i had these x11 include files in my F9. Do I need to install any external packages to get the x11 include files in place?
I have quite a few sound sample files totaling over 4 gigs in size with around 80 root folders and then around 34 sub folders. i have a total of 13 DVD's in the above format. how do i "change the date" on all files in one go is that possible?
I want to learn how to build a Linux network from scratch that includes file and printer sharing, intranet. I have an intermediate-level knowledge of Windows networking. Can anyone suggest a book or online tutorial that I can learn from? Now let me be clear: I am finding no shortage of tutorials on the web. However, too many are old or incomplete.
A little extra info: I am a teacher/network admin for a small private school with about 50 student computers (that I wish to become Linux machines in the future) and about 10 staff computers (mostly Windows laptops--I do not expect the staff to convert to Linux as readily), I currently do not have an intranet implemented.
I had a Ubuntu USB key that booted x64 and brought up the wireless network mgr with DLINK WDA-2320. But it was lost.Now I am trying different distro images to get back to what I had. But none has the Network mgr with wireless in it.I don't have any other Linux/UNIX machine here at home. Just Winbloze.Do you know which Ubuntu CD/USB image comes with a network manager and wireless for DLink WDA-2320 PCI ?
If I would like to replace "one" with "six" I would do this:
cat temp.txt | sed 's/one/six/' word/six/two/three
Now I want to replace "one/two" with "six/seven" and these options don't work: cat temp.txt | sed 's/one/two/six/seven/' (OFCOURSE) cat temp.txt | sed 's/"one/two"/"six/seven"/'
I even want to be able to replace "one/two" with "six/seven/eight"
I have a jsp code. After executing that code, a Java program should be executed without refreshing the page. that is, my first page is a login page which is in jsp. After logging in the next page must be displayed which is a Java code. is that possible? Can we use applet for that?
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
Is there anything like burning rom from nero or roxio cd/dvd copier. Do you know of any dvd copying program? like without making the image and then burning with just one process just copy the disc sorta program like roxio dvd copier? I wanted to make copies of movies I made a dvd of but aside from image burn which is a hassle to make the image first. is there something for burning on the fly or dvd/cd copying? infrarecorder and cdburnerxp do not work for me at all.
i want to integrate audio library with android driver by using ALSA plug-in And now, i try to compile ".so" code from library that I'd downloaded from web-site. what program can i use to compile .so file