UNIX/Linux Programming - April 2010 (Page 2)

by Osor77
C indentation Vim and Emacs
 
Hi All, I would like to know if there is a way to get the editors Vim or Emacs (I use both as I haven't decided which I prefer yet) to change the indentation...
[2 replies] Last: Vim has autoindent and related features that can be configured in ~/.v... (by moorecm)
copy command for unix
 
basically what I do is trying to copy a file into a sub directory. Instead of cp1 tmp tmp2, i try to do a command cp1 tmp /subDir. It supposes to copy tmp int...
[6 replies] Last: Yes. It allows you to kick off the i/o and check for completion later... (by kbw)
by Mathes
Process communication question
 
Hello, i have a program (A) that calculates some stuff and then writes it into a log file. Now i have to code another program (B) that has to work with A's ...
[2 replies] Last: thank you. i'll see what i can findfor this. but what i read so far... (by Mathes)
signal SIGSEGV, Segmentation fault. In fwrite () (/lib/tls/i686/cmov/libc.so.6)
 
hello guys! first of all I am new to this, I commented the program be able to enter data, display, search and remove, the first program features work well (can ...
[4 replies] Last: if((tmp=tmpfile())=NULL) Yes, there's an old coding standard whic... (by choisum)
by adtr
grep command
 
I want to use the grep command to find only the word "who" and nothing else. For instance I don't want to find "whoever" I used this command: grep 'who' f...
[3 replies] Last: just use following syntax: grep -w 'who' file1 -w option will sear... (by ankitsingh12)
Program for unhiding /usr/local/bin/ on a Mac.
 
I have decided to release this little piece of code to help everyone who knows their way around GNU/Linux but is working on a Mac (like me!), but is also no exp...
[4 replies] Last: Ah, if you call the program with no parameters, then argv == NULL wil... (by Albatross)
not able to access member function frooperator overload function
 
I have a structure defined in class which has a operator overload function. And I have a hashmap defined. I am trying to access the hashmap variable from the op...
[no replies]
How To fix my linux and fix ubuntu
 
Hey guys I have my pc set up as a dual-boot pc with win 7 and ubuntu but get this my ubuntu worked till i tryed to boot into it yesterday i keep seeing the gnu ...
[2 replies] Last: Try searching your problem on https://wiki.ubuntu.com/ and failing tha... (by chrisname)
how to get file type information etc
 
hi, in my program, I'm using stat() to get some info about the entries in a given directory. If the entry is a file (not a directory) I want more info concern...
[3 replies] Last: gazillion : an indeterminate, but very large number. (by jsmith)
by c0d31
child exits with error 218
 
need some help with my code , im supposed to fork a child and wait for it co complete processing the fib , which it then has to output to shared memory where th...
[3 replies] Last: Welcome to <a href="http://www.nicelouboutin.com"> Christian Louboutin... (by huanghuiyue)
vi editor in vim highlight mode?
 
Hey guys, I am new here and new to using the vi editor. While doing some c programming I did a fat finger while I was typing include, and now every word "includ...
[2 replies] Last: That did the trick; now I can focus better on my code instead of wonde... (by JarredEI)
by Ainee
Linux kernel Programming : Bugs list required
 
HI, I have to start working on linux kernel source code. the task i am assigned is that i have to pick up a bug in the latest release of linux kernel and res...
[1 reply] : https://bugzilla.kernel.org/ (by jsmith)
by fafner
Pointer problem when using forward class declarations
 
I'm writing some test code to get my head around various elements I'm not fluent with yet. I have two classes which references each other through pointers, and ...
[2 replies] Last: Ok, thanks. I haven't been writing in c++ for too long, so I didn't kn... (by fafner)
using 'file' in a cpp-program
 
hi all, I want to use the file command like so: int rc = system( "file -b anyfile.txt" ); How can I get this command's output (e.g. "ASCII English text...
[1 reply] : found it out - it works like this: void use_file( const string &... (by testalucida)
Calculating MD5Sum in C program
 
I'm trying to calculate MD5Sum's inside of a C program but my program tells me 'md5sum undeclared' whenever i try to run the command to calculate. Is there an ...
[1 reply] : Which library are you using? It would help if you showed your code. (by PanGalactic)
Where can I get the old Mac OS X 10.0 SDK for Xcode?
 
Anyone know where I can download the Mac OS X 10.0 SDK? I was searching on google, but the oldest I could find was 10.3.9.
[no replies]
by Cn00b
Linux sort used for C++ program
 
I am quite confused as I was told that I need to redirect the output to be the input of the Linux sort program and sort the results from high count to low. I...
[3 replies] Last: The above will give you result in ascending order. to get the result i... (by ankitsingh12)
by smalld
error "warning: can't find linker symbol for ..."
 
Anybody can give me a hand on this? I am trying to use Eclipse debugger in Ubuntu, and it generates the following message in the console: warning: can't find ...
[1 reply] : It looks like they have an issue with how their vtable for the virtual... (by firedraco)
by eriks
Undefined reference errors during linking
 
I've seen a number of reports and resolutions for "undefined reference" errors during linking, but none that seem to address the issue I am having. I know some...
[4 replies] Last: You've got to love that one! :P (by moorecm)
by minix
How to run this on my pc ???
 
Hi all, i compile simple "hello world" program. powerpc-linux-g++ -static H_W.cpp -o hello But I am unable to run this on my pc :( Please help me ou...
[12 replies] Last: I download QEMU on my win 7 m/c . its not working :( have anybody tr... (by minix)
April 2010 Pages: 123
  Archived months: [mar2010] [may2010]

This is an archived page. To post a new message, go to the current page.