UNIX/Linux Programming - February 2009

Fopen() and errno problem
 
So here is the main idea - I have to rewrite the CAT command and I bumped into a problem void freadf(char *argv){ FILE* file1;; char text ; int argc...
[no replies]
Testing a bubble sort
 
Hi. I have created a program which uses the bubble sort to generate random numbers and sort them using a bubble sort. I then created two functions which woul...
[3 replies] Last: You'll have to verify the compares and swaps yourself but I have a gre... (by seymore15074)
by DrLex
Thread-safe execution of shell commands
 
I have been searching for this everywhere, but I can't find any answer that brings any clarity. The fact that searching for "thread-safe" generally returns any ...
[2 replies] Last: Unfortunately the whole point of multithreading my program was to be a... (by DrLex)
by everid
g++: undefined reference
 
//main.cpp int puts ( const char * str ); int main() { puts("Hello world\n"); } HI guys, The above won't work in...
[5 replies] Last: You are not linking against the C++ runtime library for some reason. ... (by jsmith)
linux c++ compiling error
 
So I am trying to write a tic tac toe program that runs through a server. The tic tac toe works fine, but when I try to compile the server on Debian Linux machi...
[1 reply] : It seems you'vw written Managed C++, which isn't portable. Mananged... (by kbw)
Duplicate registration of class
 
Hi all, I have created some libraies from cpp files. i have some executables to which i link it. when iam running that executable it says Fatal error:duplica...
[no replies]
Question concerning passing data from function using pointer
 
Hi all! I've got a question as how to pass data from one function to another using pointer. My example code: #include <stdlib.h> #include <string> #i...
[3 replies] Last: Thanks guys!!! :) (by david000)
Ethernet Packet content
 
Hi Guys, I am trying to emulate the bridge, for this I need to use a ethernet packet. In a provided template code, I saw that someone has used this defini...
[4 replies] Last: Thanks for the reply dude (by kevinchkin)
by quant
sendto: Invalid argument netbsd
 
hi all, I've a program which worked on linux, but after porting on netbsd I take this error.. sent=sendto(sock, buf, buf_siz, 0, (struct sockaddr *) &sin, si...
[7 replies] Last: ok, I fixit but I've got another problem. There I did post two differ... (by quant)
by Sarmad
A class with a pointer to another class
 
Good day From the Cookbook of C++ I succeeded in coding this class node_t { public: int name; } ; node_t node ; class gate_t{ public: int name; } ; c...
[no replies]
Program Compile Errors
 
Hi I was wondering if you could help me find a solution to my compile errors in my program. My program is supposed to generate random numbers specified by th...
[12 replies] Last: There are a few small issues still remaining. in your first post: ... (by enduser000)
Program Compile Errors
 
Hi I was wondering if you could help me find a solution to my compile errors in my program. My program is supposed to generate random numbers specified by th...
[12 replies] Last: There are a few small issues still remaining. in your first post: ... (by enduser000)
by vivmen
GetLastError() in linux
 
hi all i am new in linux. the GetLastError() function in windows returnes error code when calling function fails . is there any equivale...
[1 reply] : errno is a global variable that stores the error code from the last sy... (by jsmith)
by Meteor
Changing screen resolution at command line
 
I was trying to install gentoo linux, but my monintor does not support a resolution of more then 800*600. Is there any way of changing the resolution at command...
[no replies]
Where can I get a Linux C++ compiler from?
 
Please tell me where can I get a good free Linux C++ compiler from.
[3 replies] Last: go to gcc.gnu.org, download gz file, extract it run ./configure, mak... (by writetonsharma)
by chrivo
Call to function of linked dynamic library does nothing???
 
Hi All, I have a very weird problem when calling a function from a dynamic library, that is linked to my program. It's a very simple function. It just takes ...
[7 replies] Last: Hi, What i have understood from the discussion is you are either no... (by writetonsharma)
by snav
how to exit from infinite loop as C++ program close
 
Hi, I am new to C++ on linux, I build a client-server program in c++ on Redhat linux. In which Server is multithreaded. One thread always keep in infinite lo...
[1 reply] : Hi, When ever you want to stop the server you can stop the thread b... (by writetonsharma)
Eclipse and Mac OS X installation
 
Hi, I am a college student with a new mac book and I need to program something in C but I am having trouble setting up eclipse with os x because this is my fir...
[1 reply] : You need XCode from Apple. Join ADC and download/install XCode. It c... (by kbw)
how to make dec to bin?
 
is there any function who makes deciaml numbers 2 hexodecimal?
[2 replies] Last: Use "sprintf" with format "x" or "X". For more info check this http:/... (by spam1598753)
Learning Linux Kernel Programming
 
Hi Guys, After searching a lot on google and gone through kernelnewbie.org, I am still kind of not sure as to from where to begin. I want to learn about...
[4 replies] Last: Thanks for the reply seymore15074. The website really looks interestin... (by kevinchkin)
February 2009 Pages: 12
  Archived months: [jan2009] [mar2009]

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