UNIX/Linux Programming - May 2011 (Page 2)

Error trying to use malloc at Ubuntu
 
Hello guys im trying to run a code that runs fine at windows, but when I try to run it at Ubuntu I get the following message at console: malloc.c:3096: sYSMA...
[3 replies] Last: Thats amazing... :) (by writetonsharma)
by ms4800
need help in makefile syntax??
 
tmp = `echo $$MKCS_RISLABEL | awk -F"_" '{print $$2}'` ifeq ($(tmp),FSPR6CGR) bash_Version="bash-3.2" else bash_Version="bash-3.1" endif ...
[1 reply] : Is environment var MKCS_RISLABEL set? As a matter of curiosity, what'... (by kbw)
Sending several lines of data through socket
 
I have this problem: I have a data structure called DACT, that I convert into a string line and send to another computer. I have a file full of DACTs, and I ne...
[7 replies] Last: I realised why you asked those questions. That \0 character was intend... (by thierrypin)
how to modify this code and input this list as input
 
i see this code in this thread, i want to know how to get input by user or from file in this code. for example this list how to use it as input in this code. i ...
[1 reply] : Please don't duplicate post (or triplicate as the case might be). http... (by kbw)
unwind_cleanup error during cout.flush()
 
Hello, we have a logger system which is printing error message depending on the LOGGER output selected (ex: logging to file, logging to output). when the lo...
[1 reply] : It's possible cout/cerr/clog is destroyed while you're still using it.... (by kbw)
Does a *nix API Exist?
 
I honestly have no idea why I didn't come here sooner. I've checked online for a few weeks and haven't found anything like MSDN for the Linux community, despite...
[8 replies] Last: I was mistaken, thanks for clearing that up. Wow, my respect for those... (by Computergeek01)
by Jhn
Pthread runtime error
 
I tried running a simple Pthread program. It compiled fine but gave a runtime error. I don't know how to fix it. It says error in line 4 . However, line 4 sound...
[4 replies] Last: Yes, it works now. You are right, I was trying to run the source code.... (by Jhn)
Mic loopback
 
Hey guys... So basically I want to be able to virtually link some audio output to my mic input... I've tried a few things... Perl (sockets)... Configuring aro...
[no replies]
by ph2011
factorial using pipes
 
write a program that calculates the factorial of an integer using pipes... can me out with this problem.. thank you
[2 replies] Last: thank for that information.. (by ph2011)
by banun
raise.c
 
Hi, I'm getting the following problem while using DDD to debug my program : Here's what I get : http://imageshack.us/photo/my-images/109/72636372.jpg/ ...
[1 reply] : The problem is that DDD cannot find your source file. Does the file gi... (by h3432)
by Jhn
Need help with pthread
 
I can't run the following program which uses pthreads. When I compile it using gcc, I get errors which I copied at the bottom of this program. #include<stdio...
[2 replies] Last: U mean something like: cc -lpthread programName.c (by Jhn)
by now
Xlib Context Management tutorials/examples
 
Hi, I'm hoping somebody can help me locate some good links with any tutorials or examples for using the context management functions within the xlib protocol...
[2 replies] Last: I wanted to learn lower level graphics programming first. I'm working ... (by now)
by bacpp
sed: advanced auto-dependency generation
 
hi, can anyone pls help me understand what $@.$$$$ means in the following sed command: sed 's/\($*\)\.o[ :]*/\1.o $@ :/g' $@.$$$$ $@ thanks!
[8 replies] Last: the problem is when I run the code, I get the following error: /bin/s... (by bacpp)
string to double
 
Hello! i have a problem converting from string to double. I read a string containing my value from a file. getline (myfile,riga_3); risultato = atof(riga_3....
[7 replies] Last: I've never seen this happen before. I can't test now, but when i get t... (by thierrypin)
by sidjey
transposition of the matrix.
 
Implement a program of the parallel algorithm for transposition of the matrix. please help me with the program! #include <sys/time.h> #include <iostream>...
[2 replies] Last: You can make a thread that reads a line and writes it as a column in t... (by thierrypin)
Implementing a interface in a dynamic library so
 
I want to implement a class that inherits from an interface in a unix-so or in a win -dll. Can I do this? How do I do? thanks.
[1 reply] : The class declaration should be in a header file which you can include... (by anonymous23323124)
by WSiaB
GUI coding intro tutorial
 
I have just completed a Introduction to C++ class and all we did was work in the console. I was wondering what are some good sites to help teach me win32 GUI c...
[1 reply] : QT - http://www.digitalfanatics.org/projects/qt_tutorial/ wxWidgets -... (by Moschops)
How to launch new process on mac
 
#include <stdio.h> #include <unistd.h> int main() { pid_t pid; pid = fork(); if(pid > 0 ) { printf("Parent pro...
[4 replies] Last: [quote=man] int execl(const char *path, const char *arg, ...); exec... (by ne555)
How to specify interface in multicast?
 
Hi! I have a quick question. If I have a multi home PC, Where do I specify which interface to use when sending out multicast msg? Below is my code, this is not ...
[5 replies] Last: Thanks again. I found tcpdump works just fine. except it needs sudo ..... (by RobinQi1)
File permission error
 
I wrote a piece of code to find out the ipaddress of my linux machine. It works well when I compile it and run it in /tmp directory. But when I convert it to ...
[2 replies] Last: In your code: readFile.open("myip.txt", ifstream::out); system("ifcon... (by kbw)
May 2011 Pages: 123
  Archived months: [apr2011] [jun2011]

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