UNIX/Linux Programming - July 2010 (Page 2)

by Kyon
Linux Codes
 
We all know the OS-dependent system(..)-command (and we all avoid it). But I'm just wondering if there is an equivalent function for Linux and if so, what is it...
[1 reply] : Nevermind, I found it. It appeared I hadn't included stdlib.h. (by Kyon)
Good IDE for C++ on Linux (1,2)
 
Sorry if I'm beating a dead horse here. But a search of this forum for "ide" came up empty. I'm an experienced developer when it comes to numerical or compu...
[22 replies] Last: cooooooool , i post 3 posts , chrisname 3333 (by yoyowinwin)
Strange Issue with GCC
 
I'm currently trying to learn C/C++ on my own in a Linux environment, but I've came up against an issue whilst using GCC that just doesn't make any sense to me....
[10 replies] Last: Thanks for your explanations and advice everyone, you've all been very... (by jwesleycooper)
Makefile question
 
I have 2 libraries in 2 different directories that I build with Makefiles. library B depends on library A. If I modify a .cpp file in library A and run lib B...
[3 replies] Last: I agree with moorecm. I would make a top-level Makefile to determine w... (by Galik)
by GnG
JP2 converter
 
Hi all, I'm capturing video frame with V4L ( Video 4 linux ) and I want to save it in jp2 format, I'm doing it with jpg format but I didn't find nothing relate...
[6 replies] Last: actually, I need to convert from YUV420 to RGB, and then save in JPEG ... (by GnG)
Get file names to my program
 
Hi everyone I want to get file names to my program.Which packey ı must use.. Tahnxs.
[2 replies] Last: For example in the /root directory there is a file called xyz.txt.I wa... (by scallioglu)
Linux driver read error
 
I'm running Ubuntu 10.04 and I'm creating an usb device driver for a specialist device known as a motion controller. Using a usb hardware packet sniffer I ca...
[no replies]
by Mutje
Console line
 
Hello, I'm new with C++ and doing while with trying, now I only have a question. Is is possible that you rewrite the last line of the console? I print th...
[16 replies] Last: [quote=firedraco]because someone could have redirected it to an error ... (by Athar)
Problem with IP source Spoofing with Raw Socket
 
Hi all, I'm trying to create packets with modified source and destination IP and ports. Well, I'm using a raw socket from <sys/socket.h> to do this. I create...
[3 replies] Last: Maybe that's a 'feature'? Preventing people from spoofing their source... (by RedX)
Linux for programmers
 
Plese tell me which linux(mint , ubuntu , fedora , opensuse) is best for programmers. I want to switch from windows to linux. Thanks in advance Harsh
[15 replies] Last: Because i'm a Fedora user i would recommand it to you... I've began li... (by stephane)
by vivmen
adding lib file
 
Hi all i am using linux for writing c++ code first time. i am using following command to compile my code g++ -g myfile.cpp -o myfile i want to ...
[3 replies] Last: And including switch -Wall, which enables all warnings, will save you ... (by elega)
Passing variables to a Makefile on the command-line fails
 
Hi folks I'm getting a strange error when attempting to pass variables to g++ on the command-line. I'm sure I'm just doing something stupid, but am uncertain...
[2 replies] Last: Yeah you're right, what a dumbass I am! (by steve lorimer)
using sed to parse output of 'g++ --version'
 
Sorry if this is not the correct place for this question, but I'm certain someone on here will know how to do this. Calling this in a shell: g++ --versio...
[6 replies] Last: :) respect! (by steve lorimer)
by Dimesh
About array !!
 
What is the difference Between those types of initializing An array called "IntegerArray" With 5 element : int IntegerArray = {0}; int IntegerAr...
[2 replies] Last: Thanks .... (by Dimesh)
input file
 
Hi guys I am writing a C++ program on Linux that will be able to open and gather certain info from a set of files located on a file on my home directory. This f...
[3 replies] Last: Instead of: inData>>file //prime in read it's customary to rea... (by kbw)
Setting up netbeans in linux
 
Alright, I've never developed under linux before so I don't even know where to start with this one. What packages do I install in ubuntu so that I can develop c...
[2 replies] Last: In NetBeans, go to Tools/Plugins and select C/C++. That's all. Edit: ... (by Athar)
Fstream fails to open even though the filename is correct
 
This is a small sample of code that I've been having trouble with. For some reason, even though config_filename stores (and outputs) the correct file location, ...
[15 replies] Last: Yeah, that helped me fix it. Apparently it was appending the name of ... (by demosthenes2k8)
Double Free or Corruption error
 
I keep getting a glibc detected: double free or corruption error. It runs through the whole thing and then error at the break statement. I think it's cause i'm ...
[9 replies] Last: Solution: used gdb debugger and found a class object (multidimensional... (by stavros)
Still learning c++
 
Hi group Im reading "Effective c++ by scott meyers" and in the book there is a section that says the following. " C++ doesn't do a very good job of separa...
[3 replies] Last: Sounds like your question is about terminology. I'm not certain that ... (by csgehman)
customizing the the path for lib and include
 
Hi, When I add my own library to the system, I need to add the path in the command line like gcc prog.c -lPers -L/PathToMyLib -I/PathToMyInclude I wa...
[3 replies] Last: I think the order of those arguments has significance. Try moving -l... (by moorecm)
July 2010 Pages: 123
  Archived months: [jun2010] [aug2010]

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