c++

Cant find libboost_system.so.1.43.0 in eclipse using boost

I am trying to run boost in eclipse, under Library search path I have put: /home/etobkru/boost_1_43_0/boostBinaries/lib/ and under Libraries I have put all the libs, boost_system, etc. The build is working without errors but when am trying to run the program I get an error: error while loading shared libraries: libboost_system.so.1.43...

How to test my application With STL such as vector to make sure whether it works or not in c++?

*we release and the acquire the pointer with the Linked_ptr in parameter */ Linked_ptr& operator=(const Linked_ptr& r) { if (this != &r) { release(); acquire(r); } return *this; } ...

Why infinite recursion leads to seg fault

Why infinite recursion leads to seg fault ? Why stack overflow leads to seg fault. I am looking for detailed explanation. int f() { ...

URL parsing library with IDN support

Hello! Is there any good plain C (or at least C++) library for parsing URL's that also supports IDN, so that it can easily parse url like http://президент.рф/ ...

What does static linking against a library actually do?

Say I had a library called libfoo which contained a class, a few static variables, possibly something with 'C' linkage, and a few other functions. Now I have a main program which looks like this: int main() { return 5+5; } When I compile and link this, I link against libfoo. Will this have any effect? Will my executable increase ...

Using static variable in function vs passing variable from caller

I have a function which spawns various types of threads, one of the thread types needs to be spawned every x seconds. I currently have it like this: bool isTime( Time t ) { return t >= now(); } void spawner() { Time t = now(); while( 1 ) { if( isTime( t ) )//is time is called in more than one place in the real...

C++ Add this pointer to a container by calling it in base class constructor

class Base { public: Base (int a, int b); private: int a,b; }; class Derived1 { public: Derived1():base(1,2){} }; similarly Derived2, Derived 3 which doesnt contain any data members on its own Now i need to contain these derived objects in a singleton, so i was thinking to call this in base constructor like Base::Base(int a, int b) ...

Conceal packet loss in PCM stream

I am looking to use 'Packet Loss Concealment' to conceal lost PCM frames in an audio stream. Unfortunately, I cannot find a library that is accessible without all the licensing restrictions and code bloat (...up for some suggestions though). I have located some GPL code written by Steve Underwood for the Asterisk project which implemen...

What is the best way to distribute C++ class

Hi, I have created a big C++ class. I need to give it to another person. I dont want him to see the function implementations but he should be able to use it as a class. (for example: he can inherit this class, use its full functionality in his code but can not see or change function implementations etc) How can i do this. thanking you....

how to stream 3gp video files in c++

i like to be able to stream and display 3gp video files that in my case coming from the YouTube Api im programing in c++. can it be done ? ...

How to hash a password and store for later verification with another digest

I am using gsoap's wsseapi plugin and would like to store hashed sha1 passwords rather than plain text. I have spent a rediculous amount of time experimenting with various methods of hashing the plain text password for storage. Can anyone suggest a way to hash a password so it can be later verified against a username token digest sent b...

Constructor is being invoked twice

In code: //file main.cpp LINT a = "12"; LINT b = 3; a = "3";//WHY THIS LINE INVOKES CTOR? std::string t = "1"; //LINT a = t;//Err NO SUITABLE CONV FROM STRING TO LINT. Shouldn't ctor do it? //file LINT.h #pragma once #include "LINT_rep.h" class LINT { private: typedef LINT_rep value_type; const value_type* my_data_; templ...

Equivalence of boolean expressions

Hello, I have a problem that consist in comparing boolean expressions ( OR is +, AND is * ). To be more precise here is an example: I have the following expression: "A+B+C" and I want to compare it with "B+A+C". Comparing it like string is not a solution - it will tell me that the expressions don't match which is of course false. Any i...

Can I access Flash data before they are rendered by the browser ?

Is it possible to read numbers and names from a Flash page before they are rendered by the browser ? The webpage is changing dynamically and I would like to capture the data every about 60 minutes. I have no access to the Flash website but I might be able to modify an open source browser if this would help. OS is Win 7 and I can speak a...

best tool for C++ code coverage

Can anyone please suggest some good C++ coverage tool. I am basically looking tool that really works fine when it comes to unit testing. The tool should work in the linux environment ...

C++ - Error: expected unqualified-id before ‘using’

Hello, everyone. I am having some trouble on a project I'm working on. Here's the header file for the calor class: #ifndef _CALOR_ #define _CALOR_ #include "gradiente.h" using namespace std; class Calor : public Gradiente { public: Calor(); Calor(int a); ~Calor(); int getTemp(); int getMinTemp(); void setTe...

can i add .h and .cpp files in a c# project?

hello i want to add some .h and .cpp files in c# to get the c++ functionality in c# i want to use tha code directly with out making any dll file. can i do so if yes the how can i do this. thanx in advance ...

Qt -> PyQT problem with drawCheck()

Hi, I have QTableView with checkbox, but the checkbox is aligned left I need to align it center I try this: http://qt.nokia.com/developer/faqs/faq.2008-01-03.2614755816 But have problem with check function def drawCheck(self, painter, option, rect, state): textMargin = QtGui.QApplication.style().pixelMetric(QtGui.QStyle.PM_FocusF...

What is your favorite/recommended project structure and file structure for Unit Testing using Boost ?

I have not used Unit Testing so far, and I intend to adopt this procedure. I was impressed by TDD and certainly want to give it a try - I'm almost sure it's the way to go. Boost looks like a good choice, mainly because it's being maintained. With that said, how should I go about implementing a working and elegant file-structure and proj...

accumulator don't compile

...