Chrissi13378 Chrissi13378 | 1 Jan 2008 16:49
Picon
Favicon

Building boost with msvc 9 x64

Hello,
i recently upgraded from msvc 8 to 9. Now I have to rebuild all my libraries, including boost.
To do so, I am executing

bjam --without-mpi --without-python --toolset=msvc-9.0_64 address-model=64 install
bjam --without-mpi --without-python --toolset=msvc-9.0_64 address-model=64 clean

in the Visual Studio x64 build command promt. I am using an own-built bjam executable using the nightly build code (1.1.08) and the boost files from the current CVS (1.1.08)

Unfortunately, once the build starts, a windows message appears, asking me how to open "execution_monitor.obj.rsp".

How can I fix this error?
-Christoph

I am using Windows Vista x64 and

Ihr erstes Fernweh? Wo gibt es den schönsten Strand.
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
j.c. | 1 Jan 2008 19:08
Picon

Port QT call to BOOST

Hi,
I am looking to port a single call of QT code:

connect(m_task, SIGNAL(finished(task *)), this, SLOT(on_finished(task  
*)));

I am not that familiar with QT, SLOTS or SIGNALS, but what I believe  
this to be doing is binding the SIGNAL function finished() from class  
"task" to my other "class" so that it will fire on_finished().

If anyone can give me some insight on how to boostify this, that would  
be great, as I have not touched that area just yet.

Thanks,
j
j.c. | 1 Jan 2008 20:29
Picon

Port QT call to BOOST - Resolved

Was quite easy actually. :-)

#include <iostream>

#include <boost/bind.hpp>
#include <boost/signal.hpp>

namespace jc
{
    class task
    {
        public:
            task()
            {
                // ...
            }

            

            ~task()
            {
                // ...
            }

            

            void done()
            {
                sig_finished(this);
            }

            

            /// signals
            boost::signal<void (task *)> sig_finished;
    };

    

    class bucket
    {
        public:
            bucket()
            {
                // ...
            }

            

            ~bucket()
            {
                // ...
            }

            

            void on_finished(task * t)
            {
                std::cout << "on_finished:\n";
            }

            

            void set_task(task * t)
            {
                t->sig_finished.connect(boost::bind(
                    &bucket::on_finished, this, t));
            }
    };

    

} // namepace jc

using namespace jc;

int main()
{
    task * t = new task;
    bucket * b = new bucket;
    b->set_task(t);
    t->done();

    

    delete t;
    delete b;

    

    return 0;
}


_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Victor A. Wagner Jr. | 1 Jan 2008 20:42

Re: Building boost with msvc 9 x64

Chrissi13378 Chrissi13378 wrote:
> Hello,
> i recently upgraded from msvc 8 to 9. Now I have to rebuild all my 
> libraries, including boost.
> To do so, I am executing
>
> bjam --without-mpi --without-python --toolset=msvc-9.0_64 
> address-model=64 install
> bjam --without-mpi --without-python --toolset=msvc-9.0_64 
> address-model=64 clean
>
> in the Visual Studio x64 build command promt. I am using an own-built 
> bjam executable using the nightly build code (1.1.08) and the boost 
> files from the current CVS (1.1.08)
>
> Unfortunately, once the build starts, a windows message appears, 
> asking me how to open "execution_monitor.obj.rsp".
I use:

bjam --prefix=../../boost64/ address-model=64 --without-mpi --toolset=msvc-9.0
--build-type=complete -j3 install

the --prefix is because I have a requirement it be there for our versioning system.  It seems to build everything.

>
> How can I fix this error?
> -Christoph
>
> I am using Windows Vista x64 and
>
> ------------------------------------------------------------------------
> *Ihr erstes Fernweh?* Wo gibt es den schönsten Strand. 
>
<http://de.rd.yahoo.com/evt=48734/*http://de.answers.yahoo.com/dir/;_ylc=X3oDMTEzY2IyNmI0BF9TAzIxMTQ3MTgzMjIEc2VjA01haWwEc2xrA3RhZ2xpbmVz?link=list&sid=396545469> 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users <at> lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Vladimir Prus | 1 Jan 2008 23:13
Picon
Favicon

Re: Port QT call to BOOST - Resolved

j.c. wrote:

> Was quite easy actually. :-)

It should be noted that in general, porting Qt signals/slots
to Boost is not possible:

1. Qt signals/slots are dynamic, so declaration of either signal
or slot need not be present in the static type of objects being
connected.

2. Boost does not support inter-thread signals.

(I'm not making any statement which model is best, just pointing
out the differences)

- Volodya
Steven Woody | 2 Jan 2008 02:24
Picon

Can i build boost under cygwin?

hi,

the building process failed.  it reported the libraries was not fully
build properly.  does boost support cygwin? thanks.

--

-- 
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.
Chrissi13378 Chrissi13378 | 2 Jan 2008 01:03
Picon
Favicon

Re: Building boost with msvc 9 x64

That's strange. It definitely does not work here. Do you execute bjam in the VC x64 command line environment or in the regular windows cmd? Did you set special environment variables or paths before compiling?

By the way, the x86 build works fine...

Chrissi13378 Chrissi13378 wrote:
> Hello,
> i recently upgraded from msvc 8 to 9. Now I have to rebuild all my
> libraries, including boost.
> To do so, I am executing
>
> bjam --without-mpi --without-python --toolset=msvc-9.0_64
> address-model=64 install
> bjam --without-mpi --without-python --toolset=msvc-9.0_64
> address-model=64 clean
>
> in the Visual Studio x64 build command promt. I am using an own-built
> bjam executable using the nightly build code (1.1.08) and the boost
> files from the current CVS (1.1.08)
>
> Unfortunately, once the build starts, a windows message appears,
> asking me how to open "execution_monitor.obj.rsp".
I use:

bjam --prefix=../../boost64/ address-model=64 --without-mpi --toolset=msvc-9.0 --build-type=complete -j3 install

the --prefix is because I have a requirement it be there for our versioning system. It seems to build everything.


>
> How can I fix this error?
> -Christoph
>
> I am using Windows Vista x64 and
>
> ------------------------------------------------------------------------
> *Ihr erstes Fernweh?* Wo gibt es den schönsten Strand.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users <at> lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Ihr erstes Fernweh? Wo gibt es den schönsten Strand.
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Felipe Magno de Almeida | 2 Jan 2008 02:32
Picon

Re: Building boost with msvc 9 x64

On Jan 1, 2008 10:03 PM, Chrissi13378 Chrissi13378
<chrissi13378 <at> yahoo.de> wrote:
> That's strange. It definitely does not work here. Do you execute bjam in the
> VC x64 command line environment or in the regular windows cmd? Did you set
> special environment variables or paths before compiling?

You should use the regular windows cmd. Boost-build will set the
appropriate environment setting for the compiler and mode you will
use.

>
> By the way, the x86 build works fine...

[snip]

--

-- 
Felipe Magno de Almeida
Chrissi13378 Chrissi13378 | 2 Jan 2008 03:48
Picon
Favicon

Re: Building boost with msvc 9 x64

That does not work as well. Same "error"-message.

On Jan 1, 2008 10:03 PM, Chrissi13378 Chrissi13378
wrote:
> That's strange. It definitely does not work here. Do you execute bjam in the
> VC x64 command line environment or in the regular windows cmd? Did you set
> special environment variables or paths before compiling?

You should use the regular windows cmd. Boost-build will set the
appropriate environment setting for the compiler and mode you will
use.

>
> By the way, the x86 build works fine...

[snip]

--
Felipe Magno de Almeida
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
<at> yahoo.de>

Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
sjdf | 2 Jan 2008 04:15
Picon

Re: [Serialization] Can I load two object from one input file?

The program run ok when I compile it with mingw, but if I compile it
use vc71, the program will crash when excute "pbb->Load( ifs );".

Thinks!

code:

//----------------------------------------------------------------------------
#include <string>
#include <iostream>

#include <fstream>

#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>

//----------------------------------------------------------------------------
using namespace std;

//----------------------------------------------------------------------------
class A
{
    private:
        friend class boost::serialization::access;
        template<class Archive>
            void serialize(Archive & ar, const unsigned int version)
            {
                ar & a;
                ar & b;
            }

    public:
        int a;
        int b;

        void Load( std::ifstream& ifs )
        {
            boost::archive::text_iarchive ia(ifs);
            ia >> *this;
        }

        void Save( std::ofstream& ofs )
        {
            boost::archive::text_oarchive oa(ofs);
            const A& refa = *this;
            oa << refa;
        }
};

//----------------------------------------------------------------------------
class B
{
    private:
        friend class boost::serialization::access;
        template<class Archive>
            void serialize(Archive & ar, const unsigned int version)
            {
                ar & ms;
                ar & a;
            }
    public:
        void Load( std::ifstream& ifs )
        {
            boost::archive::text_iarchive ia(ifs);
            ia >> *this;
        }

        void Save( std::ofstream& ofs )
        {
            boost::archive::text_oarchive oa(ofs);
            const B& refb = *this;
            oa << refb;
        }

    public:
        B( const string& s ) : ms( s ){}
        void print(){ cout << ms << endl; }
    private:
        string ms;
        A a;
};

//----------------------------------------------------------------------------
int test_TestStorage()
{
    // Save
    A* pa = new A;
    pa->a = 3;
    pa->b = 5;

    B* pb = new B( "this is test B" );

    std::ofstream ofs( "all.out" );

    pa->Save( ofs );
    pb->Save( ofs );

    delete pa;
    delete pb;
    ofs.close();

    // Load
    A* paa = new A;
    B* pbb = new B( "" );

    std::ifstream ifs( "all.out", std::ios::binary );

    paa->Load( ifs );
    pbb->Load( ifs );

    cout << "A: " << paa->a << " " << paa->b << endl;
    pbb->print();

    delete paa;
    delete pbb;

    return 0;
}

//----------------------------------------------------------------------------
int main( void )
{
    test_TestStorage();

    return 0;
}

2007/12/31, Mahesh Venkitachalam <mkvenkit.vc <at> gmail.com>:
> In my application, I am am saving 2 objects into the same archive and then
> reading
> them back correctly in the same order - so it is possible. Maybe you could
> post how
> you implemented "Load" and "Save" and I can try to help you.
>
> Mahesh
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users <at> lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Gmane