UNIX/Linux Programming - August 2010 (Page 2)

Dereference dma_addr_t?
 
I'm working with a network device driver and I would like to dump the source DMA memory to the kernel message file for inspection. I think this means I need to...
[2 replies] Last: Oops, I entered that into the post wrong. char data_in_memory[le... (by jhd1013)
Problem with Makefile
 
Hi, Here is my makefile http://pastie.org/1104332. I am trying to compile different .c files and .s files (assembly files) from different sub directories int...
[no replies]
Patternrule and Autogenerating Prerequisites in Makefile
 
Hi, I have a question about makefile pattern rules and auto generating prerequisites. Example: foo.o : test1.c header1.h header2.h $(CC) $(CF...
[2 replies] Last: I do it like this, uses gcc -M to generate dependencies. simple d... (by bigearsbilly)
by korg
Execv query
 
I have written a daemon which closes all std file descriptors. Now this deamon fork-exec's a shell script. Since the script has a number of echo's and i need a ...
[2 replies] Last: Thanks jsmith ! Wonderful solution... (by korg)
Error in reading a text file
 
this text file contains 2 paths separated by space: /home/alex/Documents/my\ current\ projects/megauploader.zip /home/alex/Documents/my\ current\ projects/pcn...
[1 reply] : Ammm never mind, I used Getline instead. (by hakermania)
STL Map Using more CPU
 
Hi, I am using STL Map for storing 20000 records. I am inserting, finding and erasing records from this Map. But these operations are taking CPU usage of 20% f...
[3 replies] Last: But these operations are taking CPU usage of 20% for 20000 records. ... (by Athar)
by Eman96
GTK/wxWidgets gui bug,image problem
 
Thanks in advance for reading this. I am using Ubuntu Linux 10.4 LTS, wxWidgets 2.8, and Gtk 2.* (I'm not sure which version, there are too many packages) Wh...
[1 reply] : This was solved in the wxWidgets forums see http://wxforum.shadonet.co... (by Eman96)
converting string.c_str to const char
 
Hi, Complete noob here... Running OpenSUSE 11.2 in Sun VirtualBox 3.2.8 r54453 Installed MySQL connectors for C, Linux - Generic version Compiling with ...
[5 replies] Last: brilliant! that works. Thank you. very much appreciated. I clearly... (by gjohncock)
CPU consumes of MySQL's API
 
Hi all, I have a process calls MySQL's APIs (like mysql_real_query). But I encountered that the process consumes CPU a lot as the same as the MySQL itself when ...
[no replies]
the open() function of gcc3.4.6(redhat linux enterprise4.8)
 
Hi, Dear experts,I have a question about open() function of gcc3.4.6.I write a example: using namespace std; #include<iostream> #include<fstream> int main(...
[7 replies] Last: Yeah,it's OK.Thank you very much. (by wenli wang)
How to read a memory map printout?
 
Hi all, I'm looking at a memory map printed by gdb. While most of the output seems intuitive, there are some things which are not directly obvious. I read th...
[3 replies] Last: Here is an easier to read hand-edited version of the above output. ... (by Craig Pemberton)
by gumaze
delete operator with multidimensional array (not 2D vector)
 
I'm having problem when trying to delete the object from main function. My matrix class class Matrix { private: int **matrix; int nRow; ...
[4 replies] Last: Thanks... I see the light now! I was forgetting that has "new" only in... (by gumaze)
Linking error
 
Hi, I am facing some problems with linking the libraries in my projects. I am using qmake to generate the make files. I used the "same" pro files to generate...
[2 replies] Last: Right. Changing the order of libraries did the trick. I knew the 'unre... (by bhatiaharsh)
Appending a string and passing it through a function. POD error
 
I need to have string data read from a profile box using gtkmm and then passed through a function. I keep getting a "POD cannot be passed through" error. I'm aw...
[no replies]
stl_alloc.h gone missing in GCC4.x?
 
Hi everyone, I am in the process of porting an application from a BSD platform onto a Linux box. When compiling, I have found that some of the header files cal...
[no replies]
Statvfs issues....
 
I wrote a program (code bellow) to get the disk sizes information and yet it does not seem to multiply the values right. did i do something wrong? #include <s...
[4 replies] Last: Thank you! (by iamatallone)
by ibwood
Windows API vs. Linux API
 
Hi all, I am trying to transfer some c++ code, originally made in windows, into linux language. I knew it would not be easy, since the two APIs are completel...
[6 replies] Last: You create ms1, ms2, ms3 and ms4 from the type unsigned. I'm not sure,... (by Kyon)
Program to get data from a website
 
Hi, I'm working on a project in unix / Linux that will use a c++ program to get data from a website, parse it and present it formatted in a certain way. I'm sti...
[2 replies] Last: Thanks I'm looking into this now (by closed account ypfz3TCk)
How to selectively pick static/dynamic link library
 
Hi! All: Could someone please tell me how could I selectively link libary as static/dynamic. e.g. if I have: libxx.a xx.so libyy.a yy.so How do I instru...
[1 reply] : man gcc (by moorecm)
C++ Command line parsing
 
I am new to programing. I am sure I am missing something simple. I just want take my switch and check if it's used or not. However, the else statement keeps ...
[10 replies] Last: Thank you. i will study this. (by fuzzylr)
August 2010 Pages: 123
  Archived months: [jul2010] [sep2010]

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