UNIX/Linux Programming - July 2011 (Page 2)

problem using gotoxy() in code::blocks ide, gnu c++ compiler
 
hi guys.. i have got a problem. I am using code::block IDE (on ubuntu) and gnu C++ compiler. It does not recognise "windows.h". I need to use gotoxy() which i...
[no replies]
New to Ubuntu/Linux need help linking
 
Hello, I recently got Ubuntu and I do not know how to link libraries or add search paths for headers. I use G++ (which is what I used on WIndows, but the comman...
[7 replies] Last: try this: create a file called Makefile in your program directory. ... (by bigearsbilly)
What is wrong with my shell program
 
It should be able to run processes in the foreground and background. 2)List all processes 3)kill a process. The string manipulations definitely seem shady. My p...
[3 replies] Last: Actually to debug if your signal calls is correct is to comment out al... (by sohguanh)
by tsa45
GNU C++ socket programming: how to publish
 
Hi I have wrote a C++ server using C++, GNU libraries. Why my server can not listen the connection from outside of my local network. I have configured my router...
[4 replies] Last: I think the problem is somewhere in your server you made. Please show ... (by Agamemnon Skepetaris)
Input validation
 
I am supposed to validate user input in a way that the user does not enter any non-existent command. For instance, emacs, kill, jobs, are all valid commands. On...
[1 reply] : In pure C, you can have a look-up table (array of char*). Then write a... (by sohguanh)
execl php - help please
 
hi, I'm new to linux, and I need some help please. I'm using Ubuntu OS, and Eclipse CDT. I'm trying to get the output of php program to my c++ program, using ...
[5 replies] Last: A reason I can think of is sometimes we want to "interface" with a com... (by sohguanh)
Help with a small shell program
 
My course is called operating systems and I have a HUGE project due at the end of the semester. But in order to get started on the right foot, I just wanted to ...
[2 replies] Last: If you are at the command-line, you can use ps command to get the pid ... (by sohguanh)
Installing Libraries
 
Im trying to download sfml for mac for xcode It tells me that I need to copy some files to /Library/Frameworks directory What is Library/Frameworks? Is it jus...
[no replies]
by piman
Swap memory help
 
I am using gmp to to precise floating point arithmetic. i also created a 20GB swap partition what i want to know is how can i declare 4 mpf_t variable in ...
[6 replies] Last: would it be okay if i use a different mapped file for each variable so... (by piman)
suggestions for usb webcam C/C++ api
 
Does anybody have suggestions for the best/easiest way to grab image data from a usb webcam into a C/C++ program? I'm on Ubuntu 11.04. Some working example c...
[3 replies] Last: Sorry, cant give any examples. I've only dealt with v4l as an end user... (by naraku9333)
by Jsel
SFML runtime problem
 
I have no errors with compiling my program like this: g++ -o client test2.o -lsfml-network -lsfml-system but when I run "client", I get the error: "./c...
[4 replies] Last: woah woah does the program compile at alll? does that error display wh... (by strongdrink)
by kev82
Minor linking issue
 
This isn't a problem, more of a niggle really. I have a project which is made up of about 7 static libraries and 5 executables. Each executable/library resides...
[1 reply] : One solution is to create one makefile for each platform with platfo... (by jsmith)
compiling with g++
 
Hi, I try to compile program on page : http://commons.wikimedia.org/wiki/File:Herman-ring-1.png I have saved the code as h.cpp and use : g++ -Wall -llibc...
[4 replies] Last: Also, you can use the -o parameter to change the name of the output fi... (by strongdrink)
by aatwo
Executing binary from within C++ program
 
Hey guys. If I have a linux binary file 'bin1' and I have another, separate binary file 'bin2', is there a standard way in Linux to allow 'bin1' to invoke 'bin2...
[1 reply] : This might be useful: http://www.metalshell.com/source_code/47/Exec.ht... (by Galik)
by Jsel
Is this book still relevant?
 
I am trying to learn network programming with unix/linux. Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition) http://www.amazon.com/U...
[7 replies] Last: C++ Network Programming (Volumes 1 and 2) are good but they use ACE. (by moorecm)
Error Linked List
 
/******************STRUCT DEFINATION*************************/ struct linkqueue { string addr; struct linkqueue *link; }; struct linkqueue *start = NULL...
[2 replies] Last: The error is at line temp = (struct linkqueue *) malloc (sizeof(stru... (by mbisht)
glibc detected
 
***glibc detected**** free(): Invalid next size (fast) ??? What is this error?? Related to some memory issues
[4 replies] Last: If you're running this under Linux or Darwin (OS X), run it under valg... (by Moschops)
Boost libraries
 
I have C::B with Ubuntu and I am trying to install the boost libraries. I have downloaded them. Built them in my /usr/include folder and now I am trying to link...
[8 replies] Last: This might be of help: http://wiki.codeblocks.org/index.php?title=FAQ... (by Galik)
Problem receiving a string with space(s)
 
Hello, here's the code: #include <iostream> #include <string> int number; std::string text; void Syf(std::string one, int two) { std::cout << ...
[3 replies] Last: ignore worked sync did not. Thank you for your answers im gonna look m... (by closed account 1wqDSL3A)
by Null
Escape sequences
 
Hello, I'm writing a function that masks password input but I can't figure out how to handle escape sequences properly. Here's my code: #include <termios.h> ...
[1 reply] : The best answer I ever saw about this subject is in a book written by ... (by kooth)
July 2011 Pages: 123
  Archived months: [jun2011] [aug2011]

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