UNIX/Linux Programming - May 2009 (Page 2)

Opening multiple Terminals using C++
 
I'm trying to have my C++ program open a new terminal and execute that program. But the problem is that the program requires root to run. So far i have this ...
[9 replies] Last: Have you tried other quoting possibilities, like this: string cmd=... (by Hammurabi)
by sever
Asking for debugging suggestions... (GNU/Linux)
 
Hello, I need your suggestions to find the *variable* and the *source code file* involved in this runtime error, terminate called after throwing an insta...
[5 replies] Last: File "core" found... Thanks to all, S. (by sever)
C++ in Unix
 
Hello Everyone I hv experience on windows with c++ but i want to go with Unix now.Can u suggest me some books or Institution where i can get depth knowledge of...
[7 replies] Last: Thanks a Lot guys. Yogesh (by sikriyogesh)
by sever
Cannot compile fstream open method.
 
Hello, I've a code starting like #include <iostream> #include <fstream> #include <cstdio> #include <string> #include <cstdlib> #include <cmath> u...
[2 replies] Last: Thanks a lot, Now works fine. S. (by sever)
by vijkrr
How to convert a char * to unsigned char *
 
Hi, I'm facing a problem in converting a char* to unsigned char* and vise versa. eg: char *final = new char ; strcpy(final,"hiiiii"); unisgned char *...
[4 replies] Last: do this: input = final; but what exactly you want to do??? this ... (by writetonsharma)
by vitaut
Binary file/pointer problem
 
char * temp; const ifstream::pos_type size = 1; int crypt(string inp, string otp, char key) { ifstream inpf(inp.c_str(), ios::in|ios::binary); ofstrea...
[2 replies] Last: Thank you very much, it helped! (by vitaut)
virtual and sizeof
 
class A{ virtual void foo(){}; };sizeof(A)=1 class B : public virtural A{ virtual void foo(){}; }; sizeof(B)=? and why
[8 replies] Last: Compiler specific? 4 8 4 microsoft; 4 4 4 mingw_g++ (by guestgulkan)
embed version information on binaries
 
Hello, I would like to know How can I embed version information on Unix c++ binaries(executable). In windows we can use resource file to specify version i...
[2 replies] Last: Just put a static const char* version = "v1.5"; in one of your s... (by jsmith)
double free()??
 
What causes the following that isn't a double free()? *** glibc detected *** ./a.out: double free or corruption (out): 0x080887a8 *** ======= Backtrace: ...
[6 replies] Last: lol, yeah, I did go off the end of my array. I was confused about why ... (by arathalion)
question on lseek
 
I was surprised when I read the documentation for lseek. I've been searching for examples on the std library to learn if the lseek behavior is similar to that ...
[5 replies] Last: You can only rely on the seekp documentation. There are no guarantees... (by PanGalactic)
by ReeV
shared library on QNX
 
Hi, I'm develop shared library for Linux, AIX and QNX. there is no problem for Linux and AIX, but in QNX, if I execute a simple application which -lwiththisli...
[no replies]
a simple programm
 
hi ... I have written a simple Relay program in PYTHON in linux now i need it in c language using by linux can you help please? This is the code: #!/usr...
[1 reply] : This is the C++ forum, not a C forum. The Boost Asio Library has exam... (by PanGalactic)
how to use iostat in c++ program.
 
Hi, I am using ubuntu linux.I am trying cpu utilization of our software. how to use iostat in c++ program.
[2 replies] Last: Hi Thanks for ur information... (by mathueie)
fcntl.h options and values
 
the following code should write the values of the AND and OR values of the fcntl.h options. It compiles, but won't create an ./a.out file instead it creates an ...
[2 replies] Last: Actually I had accidentally saved the file as a .h and compiled it as ... (by ingenioushax)
May 2009 Pages: 12
  Archived months: [apr2009] [jun2009]

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