UNIX/Linux Programming - June 2010 (Page 2)

by GnG
Object wait
 
Hi plp.. I'm having some problems with overhead in my thread, when I use the sleep with 2 seconds it does not happen, but when I use the "fast mode", 1 millise...
[2 replies] Last: Yeah man, Condition variables resolved my problem. PS. I'm using b... (by GnG)
C++ Socket Blocking issue
 
The server waits for a connection, once there is a connection, it sets the socket to non-blocking. That takes place in the first if statement, to check the vect...
[5 replies] Last: Have you changes the above code, because I can see there that both soc... (by ashwani kathuria)
by reta
convert from c++ to c
 
hi to all I use the following code in c++ under linux, but I need to convert it to c under linux, any one can convert it from c++ to c. the details of the...
[3 replies] Last: Alternatively, consider wrapping it in a function and using extern "C... (by moorecm)
by korg
Pthread confusion
 
I have confusion regarding pthreads return value. All in short , is the is a valid return value ? void * myThrRoutine(void *arg) { struct myStruct **...
[7 replies] Last: I am back from the secret RHL lab.....as of now this is not recommende... (by korg)
How to start coding in Linux
 
Hello. I've been into programing for some time, but nothing excessive, in fact, i'm still newbie with no experience. I've got some projects in my mind (some mi...
[13 replies] Last: short answer: There is no better library for C++. There are differ... (by arathalion)
by cshong
Changing MAC address in Linux
 
In Linux, we can use ifconfig to change MAC address. But, my project must have feature of changing MAC address of a network interface in Linux. If success, t...
[1 reply] : If you can't find examples of this online somewhere (a few quick googl... (by jsmith)
GTK+ mouse automatic click problem.
 
Hi I wroted program in Ubuntu GTK+. I am beginner GTK+ and have a problem. I coded new app: #include <stdlib.h> #include <X11/Xlib.h> #include <gtk/gtk...
[no replies]
curl on Fedora
 
Hey all, I'm using Fedora 13 for a week now and I really enjoy it! I came from windows 7. Now I'm trying to use curlpp with g++. I did some searchwork:...
[7 replies] Last: I'd like to make clear that LD_LIBRARY_PATH isn't the best solution an... (by closed account S6k9GNh0)
by annwah
MAP ITERATOR ISSUES
 
Hi all, this code is working on VS2005 but not on LINUX. .h #include <map> typedef struct { int MsgSeqNum; string Symbol; } INSTRUMENT; ...
[2 replies] Last: Thanks. I edit the source above again and the result same as below: ab... (by annwah)
undefined reference (g++) despite correct library
 
Hi! I'm getting some errors from g++ when linking my UI-Framework project. My Model is this: I have a frontend that defines and implements the UI controls ...
[1 reply] : Try reversing the order of your -l parameters. g++ -lSDL -lasc_u... (by jsmith)
SFML tutorial, again O_o (1,2)
 
Hello... again, an SFML problem for me :( what linkers do i need to compile the SFML tutorial "Using render windows", because it said i only need i link the...
[26 replies] Last: You're welcome. @edward: Once you reinstall SFML, could you please ... (by Albatross)
by BaluM
missing last bytes when reading binary file with C++ iostreams
 
Hello All, Could you please help me on below issue!!!! I was writing and reading binary file as below, when i write array to file it was writing good but ...
[2 replies] Last: Your code REALLY needs to be in code tags and indented. Also, your cod... (by moonshadow)
linking static library
 
Hi all, I'm kinda new to compiling on linux, but I'm learning. I've created a makefile to create a static library from the project. That library itself also ...
[2 replies] Last: As PanGalactic already said, a static library (extension: .a) is reall... (by moonshadow)
SFML with OpenGL tutorial
 
Hello.. I recently migrated from SDL to SFML, and I am on the OpenGL tutorial.. everything went fine, but when i compile it, it says /tmp/ccVts3S5.o: In func...
[5 replies] Last: ok got it, needed to do -lGLU.. i tried it in small letters but it did... (by closed account y8h7M4Gy)
kill Fork
 
Sorry for my English. I'm working with forks at a proxy. And I'm going through some problems. He starts with 10 instances and can reach a maximum of 100 inst...
[no replies]
error handling
 
can anyone help me and let me know how to use try catch finally in linux thanks.
[3 replies] Last: thanks ,i will try (by kunlmap)
by sajad
executing commands
 
hello i want to open gedit text editor and the without closing it the other commands be executed how i can do it? #include<iostream> #include<stdlib.h> u...
[3 replies] Last: ok thanks,this works properly. (by sajad)
by dnk77
My Project, feedback needed
 
Gday all, I am studying/part time teaching C++ in an australian technical college. I have been asked to write a problem and solution for a class of young stud...
[1 reply] : Redirect to clone thread: http://cplusplus.com/forum/general/24526/ ... (by Albatross)
June 2010 Pages: 12
  Archived months: [may2010] [jul2010]

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