Server :: Make A C Function Present In The Library To Execute In Php?

Apr 10, 2011

how to make a c function present in the library to execute in php and should be able to pass a any new argument back to the c library from php

View 2 Replies


ADVERTISEMENT

Server :: Call A C Function Or To Execute A C Pgm O/p From Php?

Apr 6, 2011

how to call a c function or to execute a c pgm o/p from php file and this output should be displayed in the html page ? I have tried with system() and exec()but its not working.

View 2 Replies View Related

Programming :: Adding Strlcpy() Function To Library?

May 2, 2011

I am running on windows, i don't have strlcpy() function as it's not a standard function, so i want to add it to my library, i know how to do that thankfully ^_^This is the function:

Code:
/*$OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $*/
/*

[code]....

View 4 Replies View Related

Software :: Debug Undefined Reference To Library Function (yad 0.5.1)?

Oct 15, 2010

I'd like to learn debugging techniques as much as to solve this particular problem. While trying to build yad 0.5.1:

Code:

yad-notification.o: In function `yad_notification_run':
/tmp/yad-0.5.1/src/notification.c:330: undefined reference to `gtk_status_icon_set_tooltip_text'

According to the source package's README file, "Yad depends on gtk+ only. Minimal gtk+ version is 2.12.0". I checked /var/log/packages and found gtk+2-2.14.7-i486-4 is installed.

Inspecting /tmp/yad-0.5.1/src/notification.c showed that gtk_status_icon_set_tooltip_text is a function. So it should be declared in the gtk+2-2.14.7 header files (or not?).

Checking:

Code:

c@CW8:/usr/include/gtk-2.0$ find . -name '*.h' -exec grep gtk_status_icon_set_tooltip_text {} ;
[no output]

Is this enough analysis to justify reporting an issue? Is there any more I can do before logging an issue?

OS: Slackware 13.0 32-bit.
yad download: http://code.google.com/p/yad/downloa...ar.xz&can=2&q=

The downloaded package checksums OK. Netsearching for gtk_status_icon_set_tooltip_text finds no pages.

View 3 Replies View Related

Programming :: Access Main Program Function From Library?

Mar 10, 2010

it possible to access main program function from dynamicallyinked library in c language?For example:main.c:

Code:
#include<stdio.h>
void func()

[code]...

View 2 Replies View Related

Programming :: Calling Fftw3 Library Function While Using Gfortran Compiler?

Jul 6, 2011

This is my first post. I am unable to call some of the fftw3 library functions in a very simple fortran code. The code is as follows (the filename is trial.f):

Code:
program trial
implicit none

[code]...

View 5 Replies View Related

Programming :: Write A Function That Shall Execute Periodic?

Sep 1, 2010

I want to write a function that shall execute periodic. means if i set time 1 sec that function should execute in each 1 sec. let us call that function func1. But i dnt want to wait inside the func1 for that 1 sec. Meanwhile i want to run another function say func2 in background . some thing like less priority function. Whnever the time come to execute the periodic function func1 it has to go to func1 and then again in the waiting time , the second function func2 will resume. I wanted to know how to do it.. Can somebody tell me is it possible using signal in linux.

View 6 Replies View Related

Programming :: __attribute__ ((constructor)) Function Does Not Execute

Mar 16, 2011

My setup is Ubuntu 10.04, eclipse 3.5.2 I have created the source for a shared object and a test program to test it. The program executes dlopen() and I get back a valid library handle. I can use that handle and dlsym() to get the address of my C exported functions just as I expect. I recently added a change to have the so instantiate an object at load time by using a __attribute__ ((constructor)) function named so_init(). I also added a main() function (one wasn't required before). Adding a bunch of printf()s and using the debugger in eclipse I watch the code run and the so_init() and main() functions are never called. As far as I can tell, eclipse has -shared, -fPIC and -Wl setup and specified correctly. Am I missing a compile/link flag? Is there some magic I need in the so_main.cpp to get this working. I have this written as dual source code. The same code works quite nicely in Windows which calls dllMain() as expected.

View 4 Replies View Related

Programming :: Execute A Function Which Is In A Object File Throgh Libbfd?

Sep 10, 2010

I hava a source file add.c

int add(int a,int b){
return a+b;
}

then i compile it, gcc -c add.c now we get a object file add.o, I want to execute the function add(int a,int b)(the functinon in the object file add.o) how can i use libbfd to execute it?

View 1 Replies View Related

Ubuntu :: New System Cannot Compile Anything Even Though Make Is Present

Aug 14, 2011

I just installed a new Ubuntu Studio 11.04 system at home yesterday. It was relatively painless at first but now I'm trying to compile some of the programs that I built the system for and

Code:
./make

simply is not working (returns command not found error). A makefile is present in both of the directories I'm working on.

Code:
man make

works perfectly fine. apt-get install insists that make is present, it also insists that gcc and build-essential are present. Just for the heck of it I reinstalled build-essential but nothing changed. I hesitate to uninstall it or or uninstall make as I have several packages which depend on these and several more which recommend them.

I first got into Linux with Ubuntu Server 10.04 and I remember not being able to compile then but that was because I didn't have gcc or build-essential installed. Once I installed those packages everything was happy. Every google search I perform leads me either to "install build-essentiall / gcc" or to nothing at all. Thoughts on where I can go from here?

View 3 Replies View Related

Server :: Make A Normal User Execute Commands Of The Super User's?

Jul 3, 2010

I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

[code]...

View 1 Replies View Related

Debian :: Execute "caGrid-installer-1.3.jar" File - Can't Load Library

Mar 11, 2011

I am trying to execute "caGrid-installer-1.3.jar" file. But its giving me the following error.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1649)
at java.lang.Runtime.load0(Runtime.java:787)

[code].....

View 1 Replies View Related

Ubuntu :: Make With Make File Yields Error - /usr/bin/javac: Cannot Execute Binary File

Nov 17, 2010

When I try to compile some Java code on Ubuntu 10.10 (kernel 2.6+) using make and a Makefile.

I get an error indicating that the make utility cannot execute the java compile command (javac).

The error reads: /bin/bash: line 6: .: /usr/local/jdk1.5.0_18/bin/javac: cannot execute binary file

I am executing make as root. I have enabled permissions on all directories in the path /usr/local/jdk1.5.0_18/bin/javac and on javac itself.

I get this error whether using a jdk installed via ubuntu apt-get, or whether I install the jdk myself. And I get it using either Java 1.5 or 1.6

My machine has an 80386 processor. I notice the make utility is built for i686-pc-linux-gnu

However, I can manually compile using javac.

I can compile calling javac from within a bash script.

I can compile using the java compiler gcj from the command line: gcj --main=HelloWorld HelloWorld.java -o HelloWorld.exe

But I cannot compile java code from the makefile. Any reasons why I might be getting this error?

View 4 Replies View Related

Programming :: How To Make A Library In C++

Nov 9, 2010

I'm trying to make one that has some sorts in it for now. I know you have to make a header file and a .cpp file. I'm using VC++(yes, I'm in school so windows in needed. I use Ubuntu at home I swear D if it makes a difference. What goes in the header file, how is the cpp file set up, and then where do I put the files once I'm done?

View 5 Replies View Related

OpenSUSE :: Make Keycode 22 Have The Same Function As Button 1

Dec 19, 2010

I guess I would have to use xmodmap to do this. I already used XEV to find out that the button I need changed was keycode 22. I have a Dell Vostro 1500 and I want the remote control to have a different function.

suse 11.3 / x32 / kde4

View 1 Replies View Related

Programming :: How To Make Pinging Function More Efficient

Mar 13, 2010

I am starting a project of my own (and learning C++ at the same time. I got my program to successfully scan a custom netmask, but it is REALLY slow. I want my program to do something similar to nmap -sP xxx.xxx.xxx.xxx-xxx. How to speed it up? Such as pinging more than one IP at a time...

Code:
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sstream>

using namespace std;
int ip42;
string ip1, ip2, ip3, ip4, ipaddr;
int main() {

cout << endl << "Enter part 1: ";
cin >> ip1;
cout << endl << "Enter part 2: ";
cin >> ip2;
cout << endl << "Enter part 3: ";
cin >> ip3;
cout << endl << "Enter part 4: ";
cin >> ip4;
while(ip42 < 255){
ipaddr = string("ping -c 1 ").append(ip1);
ipaddr = string(ipaddr).append(ip2);
ipaddr = string(ipaddr).append(ip3);
ipaddr = string(ipaddr).append(ip4);
system(ipaddr.c_str());
ip42 = atoi(ip4.c_str());
ip42 += 1;
stringstream output;
output << ip42;
output >> ip4; } }

View 2 Replies View Related

Server :: A Record Currently Not Present?

Mar 19, 2011

i'm using nsd3 on debian 5what i want to know, how do i not have this output when i queried mydomain.com

Code:
# host mydomain.com
mydomain.com A record currently not present

[code]...

View 1 Replies View Related

Debian :: *.desktop File To Make Execute Start.sh?

Dec 17, 2010

Can i make a .desktop file taht it executes autostart.sh script or any other script?
like xmonad.desktop od dwm.desktop?so that when gdm or any other gui login manager loads autostart apps in xmonad?

View 4 Replies View Related

Ubuntu Servers :: Make Execute PHP And Perl Scripts?

Jan 1, 2010

How would I make my server execute PHP and Perl scripts? (I'm going to be working with both)

I have PHP5 and the latest Perl installed, and my installation is fresh.

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
code....

View 1 Replies View Related

Debian Configuration :: Make Localmodconfig Failing To Function Properly?

Aug 23, 2010

The announcement of several new make scripts in the 2.6.32 release notes is very exciting.1.8. Easy local kernel configuration.Most people uses the kernel shipped by distros - and that's good. But some people like to compile their own kernels from kernel.org, or maybe they like following the Linux development and want to try it. Configuring your own kernel, however, has become a very difficult and tedious task - there're too many options, and some times userspace software will stop working if you don't enable some key option. You can use a standard distro .config file, but it takes too many time to compile all the options it enables.

To make easier the process of configuration, a new build target has been added: make localmodconfig. It runs "lsmod" to find all the modules loaded on the current running system. It will read all the Makefiles to map which CONFIG enables a module. It will read the Kconfig files to find the dependencies and selects that may be needed to support a CONFIG. Finally, it reads the .config file and removes any module "=m" that is not needed to enable the currently loaded modules. With this tool, you can strip a distro .config of all the unuseful drivers that are not needed in our machine, and it will take much less time to build the kernel. There's an additional "make localyesconfig" target, in case you don't want to use modules and/or initrds.

View 1 Replies View Related

Ubuntu Networking :: How To Make Wireless Shortcut Function Properly

May 10, 2011

i'm using ASUS K40IE laptop, installed Ubuntu 10.10 and online upgraded to 11.04 (natty), and i have a problem about my wifi.This laptop using Fn+F2 to enable/disable wifi (using Windows work properly with driver from asus) and have a Led that trigger on/off.Using ubuntu, that's shortcut it's useless. i press Fn+F2 many times, but that led indicator never turn off. Is there a way to make that shortcut can function properly? Actually, i'm not often using wifi, so i want to make it default disable on start up. Both ubuntu 10.10 or 11.04 can't using this shortcut.

View 1 Replies View Related

Programming :: Make A Template Char Or Wchar_t Default Function Argument?

Oct 30, 2009

I have a template similar to the following.

Code:

template <charT>
virtual void do_get_date(charT* = "str")
{ ... }

As you can see we have a problem. If we use a wchar_t instead the string wont be formatted right we need to prefix L in front. If we use char16_t we need to prefix a u in front. Is there a was to make the generic without resorting the the std::string class?

View 2 Replies View Related

Security :: Armitage Metasploit BackTrack 4 No Collaboration Server Is Present

Mar 27, 2011

I am using BackTrack 4 RC 2, Metasploit and Armitage. I am not able to see my target computers in the target area of the Armitage application after performing an Nmap quick scan (OS detect) on my wireless network (I have several computers connected to the wireless network).

Furthermore, I got the following warnings when trying to do the Nmap quick scan (OS detect):

Quote:

What do these warnings mean?

I was following these steps (as seen in this video: [url])

Code:

View 4 Replies View Related

CentOS 5 Server :: PHP SOAP Server Returns Array Using NuSOAP Library?

Jul 2, 2009

I have a function in my SOAP server that returns an array. When the client calls this function, it only receives "array", and when I use foreach to print each member of this array, it tells me that this is not an array. If I change the returned value of the function to a string or integer type everything works fine though, so I don't think that there is any problem with the client.I am using NuSOAP library on php to achieve that.I had doubt when declaring the type of return value of the function. In XML schema there is no array type, so I specified the return value as a string like this:

PHP Code:
$server->register("getLocation",
array('country_population' => 'xsd:string',

[code]....

View 1 Replies View Related

Software :: ./configure Problem For Libsf Library Due To Apparently Missing Libdb Library ?

Aug 4, 2011

./configure script fails to configure libsf. Please check the following last few lines of configure script error.

But find command shows the following;

It seems the file libdb does exist. man dbopen displays man page for dbopen. I also tried to ln -s /usr/lib/libdb.a and libdb.so /lib dir but all were in vain.

View 6 Replies View Related

General :: Mount The File Server Share On Application Server And Execute

Jan 8, 2010

i have purchased sun server for my visualization project. Request you to help me finding the io for disk .I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.

How would i monitor the io for file server from the Application server where i have configured 4 virtual machine. one way to mount the file server share on application server and execute

dd if=/dev/zero of=/share/test.out bs=1024 count=1024 to check the read and write Is there any other way of doing this.

View 1 Replies View Related

Server :: Distro For Public Library Server?

Sep 24, 2010

I have the opportunity to set up our local public library with a linux server. The primary need is for the server to land wifi users to a hotspot splash screen where they will accept terms of use and indicate what town they are from by checking a box or selecting from a dropdown menu. Users of terminals in the library would also have to indicate what town they are from. Things such as content filtering may come later. What distro would be recommended for this? Ease of use and configuration is important. They basically want to track use of the internet.

View 5 Replies View Related

Ubuntu Installation :: Make An Downloaded Program "Thunderbird 3" Function

May 19, 2010

I had been having problems with Thunderbird 3, so decided to install 2.0.0.24. I carefully cleaned out all the 3.0 files. So I downloaded it. Opened it with tar and can see that there is now a Thunderbird folder with all inside of it. But how do I make it run?

If I use "whereis" to locate the file to make it run, it says it is in /etc but i sure can't see it. There is a thunderbird file that seems to be the one in the thunderbird folder, but double clicking and mark "run" does nothing.

View 7 Replies View Related

Programming :: SDL Static Library - Shared Library ?

Apr 7, 2009

I'm reading about shared, static, and dynamic libraries. What is SDL? Is it static, shared, or dynamic?

I always thought a library would be a lot of .h and .cpp files compiled separately into .o files and then if you compiled your own program you could use the -l parameter to link the library and it was all compiled together. Now I'm not so sure.

I don't even see any SDL .cpp files in my system anywhere. All I have are lots of SDL .h files in /usr/include/SDL and I don't really understand the code in them.

I'm making a wild guess here: SDL is a shared library. SDL itself is NOT compiled into my program, therefore SDL must be on any system my program tries to run on. When I compile and link SDL all it needs is the header files to know what SDL function and objects it can use. And then on every system it uses an already compiled SDL shared library thingy somewhere.

So... where is that part of SDL? All I can find are header files.

I'm thinking the advantage of shared libraries is that someone could say update SDL on their own system and take advantage of the new features without having to download new executables with the new version of SDL compiled into them for every program that uses SDL.

So if I'm making an editor and a game engine and they both use a lot of the same .cpp and .h files that I wrote and I'm tired of updating one and then the other and I need to turn them into a library, then a shared library might be kind of a silly solution. I could just make a static library. Right? Because it's not SDL. Nobody else is ever going to use this library.

View 6 Replies View Related

OpenSUSE Hardware :: Multi-function Epson Stylus Sx218 - Can Not Run The Scanner Function ?

Mar 24, 2011

I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.

View 9 Replies View Related







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