UNIX/Linux Programming - September 2011 (Page 2)

by jorgen
Problem linking to gmp
 
Hello! I'm using a linux machine with kde environment on a university, connected to a network. I have a c++ program using gmp and mpfr; compiling it with g++...
[2 replies] Last: Thanks for the reply! But I just figured out that if I change to anoth... (by jorgen)
Strange Compiler error at the beginning of header
 
I am using a header file to declare a class for a queue, which is just a dynamic array and the functions to insert and remove as well as grow the array. The pr...
[4 replies] Last: yeah, I'll do that. This is a just a template that I was using from o... (by Adam Smith)
Segmentation fault on deleting a struct
 
I'm exentending existing C++ application. It have struct as below. struct Message { char z_Date ; char z_Code ; Message() { z_Date = '\0'; ...
[1 reply] : All those temporary buffers and copying without length checking make m... (by kbw)
Error: request for member...
 
#include <iostream> #include "SalesDB.h" #include <string.h> #include <fstream> #include <iomanip> #include <stdio.h> #include <stdlib.h> using name...
[2 replies] Last: using namespace std; using std::cout; using std::endl; using std::se... (by isnork)
by Shamma
OpenCV error
 
hello all, I have been coding in python before and included the library of openCV without any problem. Now, I want to code in C++ so I downloaded eclipse an...
[2 replies] Last: If you're new to C++ you may not know this, but in C++ the general pra... (by hanst99)
about size of outbuff in iconv
 
hey everyone: I have a question which is about iconv, the following code works well now, but there is still a question to me. char *ComUtil::convertU...
[2 replies] Last: Hey JMJAtlanta: Thanks! I miss the basic usage of strlen()!... (by zhmsong)
by Jest
Help! Compiling Error Message
 
So I have this code that has a sum function that sums n elements in a vector ... void computeSum (vector<int> &Vec, int howMany, int total, bool success...
[3 replies] Last: I've spruced it up since Now what I have is this for(j=0;j < Vec.siz... (by Jest)
by DimaS
How to enable struct in class ?
 
Hi folk. I have a class: class Components { struct comps{ // -- Compon base char name ; }; comps *components; int ReadComponents(); int Re...
[5 replies] Last: And now we'd still have to tell him to give the thing a destructor so ... (by hanst99)
Using gettimeofday() To Measure Performance
 
This might not be the most optimal way, I'm sure there is a better way, but at least for what I'm doing I need to use the function gettimeofday() to measure exe...
[2 replies] Last: http://pubs.opengroup.org/onlinepubs/007908799/xsh/gettimeofday.html (by kbw)
c++ and email interaction
 
Is there a way to import my contacts in my email to a text file so i can manipulate it? output example: Insert email Email: ***@hotmail.com Saving c...
[3 replies] Last: First of all, there is really no specific question you asked. Where, i... (by laserdude11)
a basic question about declaring variables
 
Hello everyone, please have a lookk at this snipet of code: https://computing.llnl.gov/tutorials/pthreads/samples/hello_arg3.c it's a webpage in this tut...
[1 reply] : It basically states that passing a struct variable (declared in main(... (by Athar)
is there any way to allocate more memory
 
i have simulated a queue with pointer "*" but it dont allocate memory that i want and it overflows in about 10800 members can i expand this limit ?
[10 replies] Last: new just throws if not enough memory could be allocated, that saves ... (by hanst99)
by ne555
makefile dependencies issue
 
I'm having trouble with my hand-made makefile. There is 1 file that is not being created (the last one) It seems to be something about the dependencies of the f...
[3 replies] Last: make is quite sensitive, yes. (by hanst99)
Posix Threading advice for high rate thread interferance
 
Hi, I'm looking for the best way to set up a problematic architecture. So far, I have not had success and a variety of failure modes. I have 3 threads (4...
[1 reply] : In my experience, increasing the priority of a thread doesn't increase... (by kbw)
by mgm11
can anyone show me how to input a value into one of my classes and then output it?
 
#include <iostream> #include <cstdlib> using namespace std; class Temperature { public: static Temperature Fahrenheit (double f); static Tempera...
[5 replies] Last: Thanks for the indication. In my code, the Singleton pattern is not im... (by b2ee)
by nadime
Help linking debug version ( g++ )
 
Howdy all, I am having a strange problem where my program compiles and links just fine with the -O2 flag set, but it only COMPILES with the -O0 -g flags se...
[3 replies] Last: HALLELUJAH! I updated the code to simply use c_str() where I needed s... (by nadime)
by sbarg
Error Loading Shared Libraries
 
Hi guys, first post! New to C++, Linux (Ubuntu 10.04) and CodeBlocks and wasn't sure whether to put this into the beginner section or here. Am trying to ...
[5 replies] Last: interactive shell (don't know what that is) It's something that o... (by Moschops)
C++ Time
 
i want to get current time but it returns seconds from 1/1/1970. Is there any additional function or method
[1 reply] : Please ask questions only once. http://cplusplus.com/forum/general/501... (by hanst99)
Segmentation fault tracking bug
 
Code::Blocks (which i'm pretty sure uses dbg ) doesn't track the place of the segmentation fault properly . When I type "where" or "backtrace" in the debugger ...
[1 reply] : Make sure Code::Blocks isn't trying to start the Release executable wh... (by Athar)
defined typedef in "sys/types.h"
 
Hi I am newbie in C programming. I am reading source codes and also writing very simple program for test. Almost in every linux program I have seen some types...
[2 replies] Last: That is done because while today size_t might be a synonym for unsigne... (by jsmith)
September 2011 Pages: 123
  Archived months: [aug2011] [oct2011]

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