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...
*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 stack overflow leads to seg fault.
I am looking for detailed explanation.
int f()
{ ...
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://президент.рф/
...
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 ...
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...
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)
...
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...
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....
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 ?
...
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...
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...
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...
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...
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
...
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...
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
...
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...
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...