UNIX/Linux Programming - September 2009

void* pointer to class method pointer
 
I'm trying to do an operation which is probably horribly platform-specific. Basically I'm using dlsym() with a mangled function name to get a pointer to a cl...
[2 replies] Last: Ok, this is an old thread, but I was away. You have to be really, r... (by jsmith)
error in compiling
 
Hi! I am a beginner to c++. I tried to compile and link following code #include "Pythia.h" #include "TH1.h" #include "TTree.h" #include "TFile.h" usin...
[1 reply] : Please use the code formating tag on the right to format your code. ... (by kbw)
compile errors in linux
 
I wrote this program in visual C++ but it has to be able to compile in linux.... Im getting many errors and im not sure what they mean or how to fix them....any...
[3 replies] Last: Ah, the joys of porting from MSC++... You need to #include <cstdli... (by Duthomhas)
find file size and file type
 
I am Using the POSIX library "dirent.h" to search a folder for files. Question 1: is there an easy way to get the size of the file? I know i could theoretic...
[1 reply] : 1: stat or fstat 2: http://www.delorie.com/gnu/docs/glibc/libc_270.... (by kbw)
by NullRx
Problem Getting HTML Response Header
 
Hey guys I am kinda new to the network programming scene so forgive the bad style, anyways I can't seem to find out how to recv() the Response header with Conte...
[no replies]
Get the path of the executable file
 
Hello.Is there any function to get the exact path where the executable is even if the executable path changes.I mean that i run the executable in a different pa...
[4 replies] Last: Probably! (by xcoder)
by quant
trouble with rt-app
 
hi every1, I need a suggestion about rt-application. if i did it and send data to my socke I've got "Non real time Singal:", why? actyally i did it in the ha...
[no replies]
Problem with system()
 
Hi! I have encountered a problem using system() in my program. When using it, for example, system("echo abc") it does nothing. As written in man system, I ...
[1 reply] : Try using exec() instead. (by Zaita)
by thht
putting shared object files in the same folder as the executable
 
hi, i am coding a project that does not obey to the standard linux path-scheme. it consists of one executable and two shared libraries (plus some plugins that ...
[2 replies] Last: so i dont get around writing a starter-script i suppose. so the questi... (by thht)
problem implementing fork
 
Hi, I was honing my linux programming skill when this nuisance started bugging me. I wanted to create an empty file creator program. While creating a large fil...
[1 reply] : Solved: replacing printf("#") in parent process with while(1){ ... (by dheerajsuthar)
Core Dump in called function?How to handle it gracefully from calling function
 
Iam calling a function from another library.The function is coredumping due to unavailability of memory.My question is Who should handle the function gracefully...
[1 reply] : if function of other library having pointer as input parameters, maybe... (by ReeV)
segmentation fault while delete..
 
HI, I am gettin a segmentation fault while deleting an object, I have defined an object CStopWord* F1=new CStopWord("stopwords.txt"); some operations ...
[2 replies] Last: You can't delete "this"... you don't need to anyway. When you use n... (by turbozedd)
c++ install?
 
I decided to try Linux (ubuntu to be specific) so what do I install now? I am lost :(
[8 replies] Last: Thank you ... however unfortunately my laptop cord went belly-up AGAIN... (by DrChill)
fork() child process in background?
 
Hey Guys, Is there any way we can fork the child process in background? Actually, when I googled it, I found two solutions: the first one explained that bac...
[6 replies] Last: Having you considered doing POSIX threads? (by losl)
by mamali
a program that print itself
 
could any one write a program that print it self ?
[12 replies] Last: That's not a quine. A quine prints it's full source code. Take the e... (by chrisname)
by mzd72
cygwin
 
I am beginning network progaming in windows i instaled Cygwin but i don't no how to use it.
[15 replies] Last: Thanks Grey Wolk. Wow, all this started by a throw away comment. S... (by kbw)
by mamali
determine that is the port open
 
i want to write a program that get a port and a host from stdin and find if the port is open or no ... could any one please help me ?
[1 reply] : Start here... http://nmap.org/ (by guestgulkan)
make/g++ error
 
If if do g++ main.o I get linker errors, which is expected, but g++ main.o something_else.o gives something_else.o: file not recognized: File format not re...
[7 replies] Last: wow... I must be blind. I think I have lots of those :( Thanks E... (by turbozedd)
Child processes (fork() ?)
 
I understand using the "fork()" function to create a child process. I understand that the fork() function returns the PID of the child process. However, can for...
[11 replies] Last: I was thinking I could use another child process to do the timing. It ... (by chrisname)
by vRltwE
Design Qt Form inside Netbeans
 
Hi, I am programming in Linux, developing a C++ program in Netbeans. Actually my program runs on a terminal but I like to design a window interface for this ...
[4 replies] Last: I can't help you more specifically as I don't use that IDE. Here are ... (by Bazzy)
September 2009 Pages: 12
  Archived months: [aug2009] [oct2009]

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