Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[Signals2] Error on building project RELEASE
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniele Barzotti  
View profile  
(1 user)  More options Apr 27, 6:03 am
From: Daniele Barzotti <daniele.barzo...@eurocomtel.com>
Date: Mon, 27 Apr 2009 12:03:43 +0200
Local: Mon, Apr 27 2009 6:03 am
Subject: [Boost-users] [Signals2] Error on building project RELEASE
Hi,
I'm writing a library that use the following:

#include <boost/asio.hpp>
#include <boost/asio/serial_port.hpp>
#include <boost/thread.hpp>
#include <boost/signals2/signal.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>

I retrieved Signals2 from svn on 15/04/09.

When I build it like STATIC DEBUG lib all works fine, but when I switch
to STATIC RELEASE I got two errors...

The preprocessor statements are:

FOR RELEASE:
WIN32;_LIB;_WINDOWS;EUROATLIB_EXPORTS;_WIN32_WINNT=0x0501

FOR DEBUG  :
WIN32;_DEBUG;_LIB;_WINDOWS;EUROATLIB_EXPORTS;_WIN32_WINNT=0x0501

What could be the problem?

Tnx,
Daniele.

--------------------------------------------------------
ATDispatcher.cpp
C:\Programmi\Microsoft Visual Studio 9.0\VC\include\xutility(419) :
error C2664:
'boost::signals2::detail::stack_allocator<T,n_stack_elements>::stack_alloca tor(boost::signals2::detail::stack_storage<T,10>
*)' : cannot convert parameter 1 from
'boost::signals2::detail::stack_allocator<T,n_stack_elements>' to
'boost::signals2::detail::stack_storage<T,n_stack_elements> *'
        with
        [
            T=std::_Aux_cont,
            n_stack_elements=10
        ]
        and
        [
            T=boost::shared_ptr<void>,
            n_stack_elements=10
        ]
        and
        [
            T=std::_Aux_cont,
            n_stack_elements=10
        ]
        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
        C:\Programmi\Microsoft Visual Studio
9.0\VC\include\xutility(417) : while compiling class template member
function
'std::_Container_base_aux_alloc_real<_Alloc>::_Container_base_aux_alloc_rea l(_Alloc)'
        with
        [

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        C:\Programmi\Microsoft Visual Studio 9.0\VC\include\vector(421)
: see reference to class template instantiation
'std::_Container_base_aux_alloc_real<_Alloc>' being compiled
        with
        [

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        C:\Programmi\Microsoft Visual Studio 9.0\VC\include\vector(439)
: see reference to class template instantiation
'std::_Vector_val<_Ty,_Alloc>' being compiled
        with
        [
            _Ty=boost::shared_ptr<void>,

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        G:\lib\boost_signals2\boost/signals2/detail/stack_vector.hpp(28)
: see reference to class template instantiation 'std::vector<_Ty,_Ax>'
being compiled
        with
        [
            _Ty=boost::shared_ptr<void>,

_Ax=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]

G:\lib\boost_signals2\boost/signals2/detail/slot_call_iterator.hpp(39) :
see reference to class template instantiation
'boost::signals2::detail::stack_vector<T,NumStackElements>' being compiled
        with
        [
            T=boost::shared_ptr<void>,
            NumStackElements=10
        ]

G:\lib\boost_signals2\boost/signals2/detail/slot_call_iterator.hpp(41) :
see reference to class template instantiation
'boost::signals2::detail::slot_call_iterator_cache<ResultType,Function>'
being compiled

Serial.cpp
C:\Programmi\Microsoft Visual Studio 9.0\VC\include\xutility(419) :
error C2664:
'boost::signals2::detail::stack_allocator<T,n_stack_elements>::stack_alloca tor(boost::signals2::detail::stack_storage<T,10>
*)' : cannot convert parameter 1 from
'boost::signals2::detail::stack_allocator<T,n_stack_elements>' to
'boost::signals2::detail::stack_storage<T,n_stack_elements> *'
        with
        [
            T=std::_Aux_cont,
            n_stack_elements=10
        ]
        and
        [
            T=boost::shared_ptr<void>,
            n_stack_elements=10
        ]
        and
        [
            T=std::_Aux_cont,
            n_stack_elements=10
        ]
        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
        C:\Programmi\Microsoft Visual Studio
9.0\VC\include\xutility(417) : while compiling class template member
function
'std::_Container_base_aux_alloc_real<_Alloc>::_Container_base_aux_alloc_rea l(_Alloc)'
        with
        [

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        C:\Programmi\Microsoft Visual Studio 9.0\VC\include\vector(421)
: see reference to class template instantiation
'std::_Container_base_aux_alloc_real<_Alloc>' being compiled
        with
        [

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        C:\Programmi\Microsoft Visual Studio 9.0\VC\include\vector(439)
: see reference to class template instantiation
'std::_Vector_val<_Ty,_Alloc>' being compiled
        with
        [
            _Ty=boost::shared_ptr<void>,

_Alloc=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]
        G:\lib\boost_signals2\boost/signals2/detail/stack_vector.hpp(28)
: see reference to class template instantiation 'std::vector<_Ty,_Ax>'
being compiled
        with
        [
            _Ty=boost::shared_ptr<void>,

_Ax=boost::signals2::detail::stack_allocator<boost::shared_ptr<void>,10>
        ]

G:\lib\boost_signals2\boost/signals2/detail/slot_call_iterator.hpp(39) :
see reference to class template instantiation
'boost::signals2::detail::stack_vector<T,NumStackElements>' being compiled
        with
        [
            T=boost::shared_ptr<void>,
            NumStackElements=10
        ]

G:\lib\boost_signals2\boost/signals2/detail/slot_call_iterator.hpp(41) :
see reference to class template instantiation
'boost::signals2::detail::slot_call_iterator_cache<ResultType,Function>'
being compiled
LRRPTokenizer.cpp
--------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mori Hess  
View profile  
 More options Apr 27, 9:15 am
From: Frank Mori Hess <fmh...@speakeasy.net>
Date: Mon, 27 Apr 2009 09:15:44 -0400
Local: Mon, Apr 27 2009 9:15 am
Subject: Re: [Boost-users] [Signals2] Error on building project RELEASE

On Monday 27 April 2009, Daniele Barzotti wrote:

> I retrieved Signals2 from svn on 15/04/09.

> When I build it like STATIC DEBUG lib all works fine, but when I switch
> to STATIC RELEASE I got two errors...
> ATDispatcher.cpp
> C:\Programmi\Microsoft Visual Studio 9.0\VC\include\xutility(419) :
> error C2664:
> 'boost::signals2::detail::stack_allocator<T,n_stack_elements>::stack_all
>ocator(boost::signals2::detail::stack_storage<T,10> *)' : cannot convert
> parameter 1 from
> 'boost::signals2::detail::stack_allocator<T,n_stack_elements>' to
> 'boost::signals2::detail::stack_storage<T,n_stack_elements> *'

It seems msvc 9 in release mode with iterator checking turned on needs to
be able to copy construct allocators from allocators with different
template types.  See for example:

http://www.mail-archive.com/qpid-...@incubator.apache.org/msg13891.html

Would you try applying changeset 52627 from svn trunk and see if that fixes
it? :

https://svn.boost.org/trac/boost/changeset/52627/trunk

  signature.asc
< 1K Download

_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Barzotti  
View profile  
 More options Apr 27, 9:53 am
From: Daniele Barzotti <daniele.barzo...@eurocomtel.com>
Date: Mon, 27 Apr 2009 15:53:05 +0200
Local: Mon, Apr 27 2009 9:53 am
Subject: Re: [Boost-users] [Signals2] Error on building project RELEASE
Frank Mori Hess ha scritto:

> It seems msvc 9 in release mode with iterator checking turned on needs to
> be able to copy construct allocators from allocators with different
> template types.  See for example:

> http://www.mail-archive.com/qpid-...@incubator.apache.org/msg13891.html

> Would you try applying changeset 52627 from svn trunk and see if that fixes
> it? :

> https://svn.boost.org/trac/boost/changeset/52627/trunk

YEP, This change seems to work!!!

Thanks a lot Frank!

Cheers,
Daniele
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniele Barzotti  
View profile  
 More options May 4, 5:27 am
From: Daniele Barzotti <daniele.barzo...@eurocomtel.com>
Date: Mon, 04 May 2009 11:27:22 +0200
Local: Mon, May 4 2009 5:27 am
Subject: Re: [Boost-users] [Signals2] Error on building project RELEASE
Frank Mori Hess ha scritto:

Today I switched to boost 1_39 and while I'm very happy to see that
Signals2 is been included, I've noted that this change is not...

Maybe is this only a workaround for this msvc issue?

Thanks,
Daniele.
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank Mori Hess  
View profile  
(1 user)  More options May 4, 9:45 am
From: Frank Mori Hess <frank.h...@nist.gov>
Date: Mon, 4 May 2009 09:45:44 -0400
Local: Mon, May 4 2009 9:45 am
Subject: Re: [Boost-users] [Signals2] Error on building project RELEASE
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 04 May 2009, Daniele Barzotti wrote:

> Today I switched to boost 1_39 and while I'm very happy to see that
> Signals2 is been included, I've noted that this change is not...

> Maybe is this only a workaround for this msvc issue?

The fix for the msvc 9 "release mode with SECURE_SCL" compile bug will be
included in the next release, it just came up a bit late for the 1.39
release.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn+8YgACgkQ5vihyNWuA4WenACghmZMtxYJniyNBeyuBpROz8bh
rAoAnjUUjQ5uJFnI9FdXbnT6S/bpT8PR
=DiOF
-----END PGP SIGNATURE-----
_______________________________________________
Boost-users mailing list
Boost-us...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google