UNIX/Linux Programming - April 2011 (Page 2)

by sqrt4
Combining two makefiles
 
Hello, I have two makefiles. And I would like to write one program with ONE makefile to use both used libraries. The first one is form Coin-Clp. # Copyright ...
[2 replies] Last: Another option is to have a top-level Makefile that uses the other two... (by moorecm)
Creating a file system?
 
So i have this school project where i have to create a file system for a "hard drive" in unix... Basically it will access a file that is to be put in to a h...
[1 reply] : I think you should read some operating system book like Maurice J. B... (by writetonsharma)
gdb question..
 
Is there any way to get gdb to run from a certain line of code or do you always have to start from the begining?
[2 replies] Last: Do you mean you want to insert break point to a certain line? You can ... (by talentspsp)
by deswal
fpermissive error of g++ in cygwin
 
I am using cygwin I am getting these errors when i compile sim_routing.cc program by this command ../../bin/cxx sim_routing.cc g++ -Wall -o sim_routing sim_...
[1 reply] : It looks like you need a declaration for strcat. This can usually be ... (by kooth)
Use template to dynamic allocate complex type in C++ ???
 
I have some function, but don't know dynamic allocate complex array. Please guide to me. This is my source C++: #include<iostream> using namespace std; t...
[no replies]
Want to learn C++ on Unix/Linux
 
Hello Friends! I know the C++ on Windows, but I want to learn on Unix/Linux platform, but i dont know anything about Unix/Linux. So please can you guide me f...
[5 replies] Last: AnuragBansal, What is you ultimate goal? Fun/work, System programing... (by closed account z05DSL3A)
by JessH
How to get rid of <defunct> child processes
 
This is my code. I fork Y times to get Y childs and it does fine while(index<Y) // Y is the number of childs to be created { if(p_id...
[2 replies] Last: Great, thats what I needed, problem solved :) Thank you I found thi... (by JessH)
by MarkP
Coding under Linux, getting started
 
I have ZERO knowledge about Linux, I don´t even plan on using it at all, except of one thing. I have a server rented at some provider and I find the Windows l...
[6 replies] Last: Thank you very much Bazzy, you´re right, once I got the VirtualMachin... (by MarkP)
visual c++ compatibility with linux
 
Hi, even though am new to c++ I thought it would be best to post my question here and not in the beginners section. Am just about to start programming in c++ a...
[15 replies] Last: @brhrmaster thanks 4 the info. U guys on this site have been so helpf... (by Mwanzia)
STL 2-D map iterator question
 
Hi, I'm trying to iterate through a 2-dimensional (nested) map. I think I'm following syntax correctly, but keep getting compilation errors. System: Linux dra...
[4 replies] Last: Ack, thank you Galik and firedraco, that fixed it! Really great to ge... (by nelagnelag)
Random IP Generation Program
 
Hello,I was Designing a Program that has two function the random_ip() and main() the random_ip() returns an array of random generated ip address #include<std...
[3 replies] Last: There is a very distinct difference between writing C++ code and writi... (by PanGalactic)
Show terminal window
 
Hey guys, I was wondering if you could have it so when you go and click on a program in linux it always automatically brings up the command line for the info...
[1 reply] : The 'command line' is one of a number of terminal emulator programs th... (by Galik)
Moving Files
 
what type of command would you us copy all the files in one directory to insert them into a newly created file, in a different directory?
[2 replies] Last: .. interesting (by Whiterava2)
by kxg
How do I count words in a File (I'm New)
 
I try to set up the code but the infile will not open and read. I need to set up the input file and ask the user for the input file name. #include <iostrea...
[2 replies] Last: @Yoshi... what if there happens to be more than one space between two ... (by ultifinitus)
Call dynamic array from fortrant 77 in C++ ?
 
I have some problems with combination between Fortran and C++> Hence I can not link the data between two codes. Please take a look on my source code and help me...
[no replies]
How to run/debug c++ project (in eclipse) on remote linux server from windows?
 
I have a project that I want to run and debug on my linux server. The linux server is linux 2.6.18 and it has no GUI. The operating system I am running on my ...
[3 replies] Last: http://www.google.co.uk/#hl=en&xhr=t&q=eclipse+AND+c%2B%2B+AND+%22remo... (by closed account z05DSL3A)
RUN TIME ERROR SEGMENTATION FAULT (CORE DUMPED)
 
i run this program on gcc compiler ,and i got run time error of segmentation fault. when i debugged it got segmentation error in the parametrised constructor...
[4 replies] Last: Instead of #define SIZE 3 use const int SIZE = 3; ... (by lordmat)
by JessH
fork() , thread or X? in daemon ?
 
Hi, i'm writing a daemon and i need to launch some processes and I'm not sure what do I need to use. I've read a lot about forking, threads and so on but I don'...
[8 replies] Last: Just need to take note spawning of process are much more expensive th... (by jsmith)
how to get input from user in - int main()
 
I am looking this problem. i tried but not successful. How to get input from user in this program, in the int main() function. #include <stdio.h> #inclu...
[4 replies] Last: You want to input a string, you can use gets, or fgets. fgets is recom... (by techie07)
April 2011 Pages: 123
  Archived months: [mar2011] [may2011]

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