UNIX/Linux Programming - October 2011

how to use "popen" or "pipe" for sending one c programme output to another c programme input
 
My aim is to communication of two processes through popen. Here my two process are matrix_sum.c (for addition of two matrices)and display_format.c(display form...
[1 reply] : First, you need to check for errors when functions return -- especiall... (by kooth)
Multithread error
 
I typed the following code into CodeLite (Linux) and it gave me the error below: :18:62: error: invalid conversion from ‘void* (*)()’ to ‘void* (*)(voi...
[4 replies] Last: So how exactly should fix this problem Your thread function should b... (by kbw)
installing gnu c++ compiler
 
help me in installing gnu c++ compiler
[5 replies] Last: On Linux, use your package manager. On windows, use the automated ins... (by closed account 1yR4jE8b)
fatal error: gnu/stubs-64.h: No such file or directory
 
Hi all, I'm a beginner in Linux. I wrote a program named hello.c: /* hello.c */ #include <stdio.h> int main(int argc, char *argv ) { if (argc > 1) ...
[no replies]
Error: /usr/bin/ld: cannot find -lc when compile simplest program "hello.c"
 
Hello all, I'm beginner of Linux. I use Fedora 16 (RedHat) 64bits. I wrote a program named hello.c int main() { } I compiled it but I got followin...
[no replies]
Create Large File Quickly
 
Hi, I am trying to create a large file (5-50 MB) and I am looking for a quick way to do it. I know I can use calloc to allocate large areas in memory, but I'...
[2 replies] Last: It seems fwrite is what I was looking for. Thanks EricDu for the respo... (by restingParrot)
Problems without output and my program
 
Ok so I am making a report for school in C++ and this is not working. There are no errors in the compiler and when I run it I can sort of make it work but it wo...
[7 replies] Last: I didn't read it all either, but I see part of the problem. Since it ... (by FlyFast)
by edbtzy
Terminal wont run my program
 
I currently have 2 virtual machines running, one is a server and one is a client. They are both running Ubuntu. I created a C++ program to connect to a MYSQL ...
[2 replies] Last: what the program spossed to do once it connects to the MySQL data base... (by hwuy)
How to record a process's CPU usage and dump it out??
 
Hi all: I want to monitor the CPU usage of a process which running for one hour, I know top can show all the stuff on screen but I want to record the usage in ...
[1 reply] : You can know the pid of the process and open it's /proc/<pid>/stat fi... (by rmsharkey)
Accessing RAM performace
 
Dear All, Anyone knows about how to access the RAM memory like i like to display the current performance about RAM in the CPU something like task monitor u...
[2 replies] Last: Look at the /proc filesystem. (by rmsharkey)
cygwin & NP.. IMP!!
 
I was about to start doing NP IPC through cygwin.. but as the packages list is huge... i need to short list the only packages required for doing IPC... plss ...
[no replies]
undefined reference to clock_gettime with -lrt
 
Hi, I am trying to compile a C file with the following command: gcc simple.c -I /usr/local/bin/maple15/extern/include -L/usr/local/bin/maple15/bin.IBM_INTEL...
[3 replies] Last: Yes, in that case you'll have to go visit the Kubuntu forums. Sorry. (by Duthomhas)
by viji
MNC looking for c++,Linux/Unix developer
 
MNC looking for c++,Linux/Unix developer location -Bangalore exp-3.5 to 5.5 • Linux or UNIX experience; • Candidates having experience in product de...
[1 reply] : Please move to the Jobs section (by strongdrink)
Compile C++ using cmd
 
Post topics only once. And into the correct sections please. Putting it into the general section was already quite a stretch as this is obviously a beginner que...
[no replies]
by gwiz
Point me in the right direction please :)
 
Hi, I just signed up for an account here, so hello to everyone! The reason I'm posting this, I have been reading through the C++ tutorials and learning for t...
[7 replies] Last: [quote=ksm]If you are a beginner , FYI , Learning Java is easier than ... (by Duthomhas)
by duki
Solaris: bad alloc exceptions turned on by default?
 
Hey everyone, I'm trying to find out if, by default, Solaris systems throw a bad allocation exception when 'new' is called, but the system doesn't have availab...
[2 replies] Last: Thank you! (by duki)
by Bic121
MultiTasking
 
Hi All, I'm new to programing in c++ so please bare with me. Here's the problem, I have a list/vector of external job/programs I need to run. Some of the job...
[4 replies] Last: Why bother with C++ at all? jobs | wc -l returns the number of runnin... (by kbw)
Console Command
 
I want open my program function in console. Example; "my_program -my_function".How do I make it.
[1 reply] : http://www.site.uottawa.ca/~lucia/courses/2131-05/labs/Lab3/CommandLin... (by Moschops)
Getting method name from libraries
 
Hi All, I have library named libtest.so I need to get all the method names from the library with the return type. By using -nm linux command i could get the ...
[2 replies] Last: return type of a normal function is not built into the function's sign... (by EricDu)
by rogi
creating a Bluetooth DUN client
 
well i'm not a new at bluetooth, but i'm trying to create a DUN client for my use. i'm looking for some guide about the API i use after connecting to the phone...
[no replies]
October 2011 Pages: 1234
  Archived months: [sep2011] [nov2011]

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