UNIX/Linux Programming - September 2011

Compiler error with array/string initialization
 
The compiler returns the following error when I try to compile any programs with an initialized string or array: " extended initializer lists only available wit...
[4 replies] Last: Thank you for the extra information. I'm still new to the subject, bu... (by klatu375)
by daba
Ghost for wc3 coded in C++
 
Hello admins,i am new to C++ and ghost,i got serverbot but i want to add command !exile. !exile would be command only for root admin(me),and with that command ...
[2 replies] Last: good (by shinn1)
Com port select system call
 
Hello. Excuse me for my English. I am Russian. I have read serial programming manual heare http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html...
[no replies]
Download pages with wget
 
Well I'm trying to download data from this site operationally, but I can not download this page with wget: http://weather.uwyo.edu/cgi-bin/sounding?region=s...
[2 replies] Last: Sorry for no do question about C++. But I don't found it in google. Th... (by Arthur Lucas)
by rnbguy
c++ code using libnet not compiling
 
guys im trying to compile my libnet script and am getting this error: [root@whyme]# gcc -Wall `libnet-config --defines` mysocket.cc -o mysocket `libnet-confi...
[1 reply] : you guys use c++ instead of gcc! (by chinalinux)
Building Operating System using c++
 
Hey folks..new guy here.. So heres teh deal.. got a school project to design an OS using c++ and create functionality like pipe "|", redirect ">", and run in ba...
[2 replies] Last: Hi I want to make a radio streamer, which basically do the following t... (by MICK)
by kfoynt
Problem linking a library
 
Hi I have an algorithm programmed in C. I am trying to link the FFTW3.3 library on it, both the compilation and build of the executable are successful. How...
[3 replies] Last: The fftw library was conflicting with the -lmx, -leng, -lmat, -lmex li... (by kfoynt)
VIRT, RES question
 
I have code that uses large portions of memory >2GB on a 4GB 32-bit system. I am watching the memory usage with top -p while my code runs. As the code execute...
[1 reply] : That's the standard behavior. When you use delete, memory pages that b... (by Athar)
by ncitom
new g++ memory fault - help
 
I recently upgraded my linux to release 11 with the newer compilers. Code that has been running for years on many platforms now traps with a memory fault and I...
[5 replies] Last: You could be right, ... dunno. sprintf shouldn't be used in this day ... (by kbw)
by gianc
Thread and scanf: strange problem
 
I have 3 thread 1) main thread with a while loop and 1 scanf function for choise job 2) a thread that read and writes on serial port 3) a thread for the spee...
[4 replies] Last: The problem was in the speech library....... thanks to all (by gianc)
by sysf
RS232 and termios Problem
 
Hi all, i simply want to send data to an device, which is connected to my RS232-Port (/dev/ttyUSB0) to get an response from it. It shoulden't be that difficu...
[no replies]
Segmentation Fault or compilation error?
 
Hi, i have a very weird fatal exception happening very rarely on my application (compiled under gcc - Ubuntu linux) it seems that this this function : bool G...
[6 replies] Last: that virtual and multi-threading can not work together. Not true at ... (by kbw)
by JoshJ
Why does this short program causes "memory exhausted"?
 
#include <iostream> #include <string> #include <vector> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <stdio.h> #include <unis...
[2 replies] Last: I can't help you much but in my implementation it does not cause any "... (by eypros)
How to calculate how many times a function runs???
 
Hi all: I have a function in kernel module and I want to see how many times it is called and runs per second. I add a counter in the function so once it runs, c...
[1 reply] : Hello, why don't you create a static local variable which could count... (by eypros)
Sharing a serial port among multiple processes
 
I am creating a Daemon in Unix that will have exclusive access to a serial port "/dev/tty01". I am planning to create a Master - Slave process paradigm where th...
[no replies]
Vectors, oh my!
 
For some reason, when I try to initialize a vector I end up getting an "operator=" error which I can't seem to figure out. I'm still fairly new to C++, so there...
[1 reply] : This: new std::vector<unsigned int>(); allocates heap memory for you... (by anonymous23323124)
by php
problem with code
 
#include<iostream> #include<string> using namespace std; int main() { char a ,b ; cout << "enter the string."; cin >> a; cout << "enter the string to fi...
[10 replies] Last: ok nice idea (by php)
Makefile issue
 
Hi everyone! I'm pretty new to makefiles and I've got an issue here: I like to clean up "make" but make reports an error: make clean rm -f ./simulation Mak...
[1 reply] : OK... SHELL := #!/bin/bash did the job! (by ZED0815)
what does this Task * mean???
 
The code is like following, Task is a class,what does that (Task *) mean here?? class InfiniteSource { ... bool run_task(Task *t); private...
[5 replies] Last: Ask the one who wrote that code or check the documentation (if there i... (by Athar)
How can it be with my socket????
 
...
[1 reply] : It looks like you're using a socket class but haven't declared it. It... (by kbw)
September 2011 Pages: 123
  Archived months: [aug2011] [oct2011]

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