UNIX/Linux Programming - December 2009

pthread problems
 
Hey everyone. I am having a few problems with the pthread functions. I am trying to create a thread class with the following definition: #ifndef CTHREAD_...
[6 replies] Last: I have to agree that kbw has the better solution. If your philosop... (by Galik)
Problem with sockets (segfault)
 
I decided to finally take the time to learn how to use sockets. Anyway, I'm using Beej's guide and I basically copied his server example (to learn how it works)...
[2 replies] Last: I thought I posted all that :l My mistake. I should also have posted ... (by chrisname)
by jsmith
Making SSH tunnel in C++
 
Anyone know if there is a library or of a webpage that explains how to make SSH tunnels on Linux short of fork/exec of the openssl command to do it? I'm n...
[4 replies] Last: Thanks for the input. I guess I'll go the route of launching the co... (by jsmith)
Compile and linker problems
 
Hi, I have written this C code that work well as stand-alone software. I'm trying to integrate it on a preexisting software, but without success. The code...
[1 reply] : Do you know where the library is located? Does it have the same name (... (by helios)
by Atanu
Compilation Problem due to version change - need advice
 
Hi, I have the following c++ code and I try to compile it with "g++ -c myCode.cpp" in three different versions of the gcc compiler: ------------------------...
[4 replies] Last: You are trying to assign contents of myVec to 0...but the elements of ... (by closed account 1yR4jE8b)
Shell scripting
 
I would like to know books on intermediate/advanced level shell scripting. Can anyone suggest? Thanks.
[4 replies] Last: Classic Shell Scripting By Arnold Robbins, Nelson H. F. Beebe r... (by closed account z05DSL3A)
Template in Mac or Linux
 
I am practicing the follow code in Mac OS and Linux. #include <iostream> template<typename T> class NamedObject { public: NamedObject(const char *name, c...
[4 replies] Last: It's working. Thank you for the help. (by slee7411)
multithreading in C++
 
I want to run POSIX multithreaded programs written in C++. I don't have g++ compiler, coz I'm running Vista. 1) Does anyone know of a g++ compiler along with...
[2 replies] Last: Thanks lloydchristmas, I was able to install cygwin and ran the bas... (by n4nature)
by vijkrr
how to find a socket is existing or not ?
 
hi all, I've written a Server socket program in C++, In my program Device Id is a unique one through which I accept the client connection. My code has to pas...
[3 replies] Last: Detection of connection closed by remote host: http://stefan.buettcher... (by lloydchristmas759)
by JackK
gconio.h
 
There's a website on the net which is referenced many times and includes gconio.h file: http://www.wence.vandermeersch.org/gconio/. I download that file to u...
[2 replies] Last: I used to use this header file but fixed by someone. It worked very we... (by JackK)
How To dup my fifo to stdin???
 
Hello... I've studied FIFO in recent days... and tried to write some code (Linux C) for practice... but there are some bugs in my code... I don't know how...
[no replies]
expected â=â, â,â, â;â, âasmâ or â__attribute__â before
 
ive got code the will compile in windows but not linux and i really don't know what is going on here my error shows: DynCharStack.h:5: error: expected â=â, ...
[4 replies] Last: That's happened to me on Unix; instead of "smart quotes" you get â's ... (by Zhuge)
Template specialization problem
 
Hi, I have some user-defined classes, for which I have to define std::hash, which are nested in the scope of another user-defined class. So I have to speci...
[no replies]
inherted from a template class
 
Here are two template class. template<class T> class A{ protected: T _data; }; template<class T> class B:public A<T>{ B(T data){_data=data;} }; ...
[2 replies] Last: This question has been asked before and answered here: http://www.cpl... (by guestgulkan)
Virtual memory stats...thrashing
 
Hi All, Is there any command or tool to find out thrashing on linux/solaris OS?? Please let know if there are any such tools/commands. Thanks in advanc...
[2 replies] Last: You can look at your process' VmSize and VmRSS in /proc/<pid>/status. ... (by jsmith)
Error in using fstream objects
 
Hi, I have written a function which will open the file with the input name provided.I am compiling on a Linux box using g++ compiler.Detail code below Plz let ...
[1 reply] : You can't copy streams, so your function won't work. Why do you need ... (by Bazzy)
by ellan
Performance does not scale with boost thread package for calling function member
 
I have a program I've written using C++. The task it completes falls into the "embarrassingly parallel" realm, so I should be getting a pretty good performance ...
[no replies]
by ligaf
SOURCE CODES FOR LINUX DAB.c DMSB.C
 
Probably you`ve heard about dab.c and dmsb.c They are files writen in C++ language and DECODE ATKIN BIPHASE AND dmsb decodes magnetic stripe binary.I have a ...
[no replies]
by amitp
system call giving BAD KERNEL TRAP
 
Hi all I have a application in which files are copied to USB drive. For copying files to USB system() fucntion call is used ( system("cp -f...") ). Some t...
[no replies]
by Truffy
c++ send HTML format in java
 
Hi, Is it possible to send a string format or an object in which the pack it as http://localhost/aa:aa:&codex=12334&a=424 At first I think string can ...
[3 replies] Last: So you want to return strings from a C++ app to a Java app? These g... (by kbw)
December 2009 Pages: 12
  Archived months: [nov2009] [jan2010]

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