Thanks a lot. That did it.
Type: Posts; User: 3saul
Thanks a lot. That did it.
I'm having some trouble with one of the FAQ examples
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608
I have adapted the code as below yet all I get is directory...
problem fixed! thank you everybody for your help. The problem was in fact adding the additional paths and libraries to my project (stupid)....so you were right, nothing to do with the Makefile...
...
Yes I've tried that already (see build messages). That's why I was heading down the path of ill configured libraries and looking at ldconfig, not that I know what to look for though, hence my posts....
I'm not entirely sure which part of the Makefile will have the info you need...so I'll post the whole thing. Also the makefile is being generated with version 1.4 - which is an old version..but has...
Let me know if you need more. BTW..I've 'cleaned' the makefile many times and recreated it but obviously when it recreates it it still has the same problems...let me know if you need more from the...
Yes it is my app. Everything was working until I added gconf to my code. It seems to be some kind of misconfiguration in Ubuntu (6.06) because I get the same thing on my other pc with the exact same...
Surely there's something someone can suggest that I try....look for! I'm using Ubuntu 6.06.
Thanks
ldconfig show's that they're installed correctly..
ldconfig -p | grep gconf
libgconf-2.so.4 (libc6) => /usr/lib/libgconf-2.so.4
libgconf-2.so (libc6) => /usr/lib/libgconf-2.so
...
I'm having problems linking my app. Here are the build messages
Building the whole Project: iop ...
make
make all-recursive
make[1]: Entering directory `/home/lx1/Projects/iop'
Making...
I have a file that has the following layout
Data:\t (tab)serial
Should I use strtok to separate the Data:\t from the string I want or use something else?
#define DELIM_2 "Data:\t"
Is there a function somewhere that will let me pass it the executable file name and it will return the pid (if its running)?
I thought I'd ask before writing a function to trawl through...
Something along these lines is what I need...of course this does not work! ;)
{
const char *name = "LANGUAGE";
int i = 0;
char *tmp;
tmp = getenv (name);
Given the following string 22E:77
I need to copy the characters from the string into another array up until it reaches the : character
I couldn't get this working properly with fgetc. Any help...
**Repost from Linux forum**
I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How can I make this system call that will include the password...
I'm wanting my program to pass a command to the system which will unzip a password protected zip file. How can I make this system call that will include the password without someone being able to...
I have a need to create a global multidimensional array of unknown size (size is determined later in the program). My questions are:
1. How should I declare it initially
2. How do I later in my...
The above code didn't work but I figured it out. Use the following
if( dir->d_type == DT_DIR )
Thanks but I don't have mode.h on my system (Ubuntu 5.10).
I'd highly recommend Anjuta
From the FAQ:
This code lists not only files but folders as well
#include <dirent.h>
#include <stdio.h>
DIR *d;
struct dirent *dir;
How do I use su half way through my app? As my original post said I need to initially run my app as a normal user...then obtain root priviledges...
I'm creating a program that needs to be initially run as a normal user to get some information specific to the user but for certain functions requires root priviledges. I'm using linux..what would be...
Sorry that was a typo...I've corrected it now. Basically it reads a file or folder name and compares it. Now depending on whether or not if finds a match it will change the string that is being...
I have the following code
d = opendir(sf_homedir)
int z = 1;
if (d)
{
while ((dir = readdir(d)))
{