You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sodan <so...@sodan.dk> on 2010/04/19 00:30:14 UTC

Visual Studio 2010 compile error

1>  BooleanStream.cpp
1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
error C2039: 'back_insert_iterator' : is not a member of 'std'
1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
error C2065: 'back_insert_iterator' : undeclared identifier
1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
error C2275: 'std::vector<_Ty>' : illegal use of this type as an expression
1>          with
1>          [
1>              _Ty=unsigned char
1>          ]
1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
error C3861: 'iter': identifier not found
1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
error C2065: 'iter' : undeclared identifier



-- 
View this message in context: http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28285659.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Visual Studio 2010 compile error

Posted by Timothy Bish <ta...@gmail.com>.
You could try pulling the code from the 3.1.x fixes branch as I removed the
use of back inert iterators from most if not all the code as they aren't as
fast as a bulk insert operation.  That branch is located here:

https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.1.x

Regards
Tim.

On Mon, Apr 19, 2010 at 5:32 PM, Sodan <so...@sodan.dk> wrote:

>
> found this link
> http://programming.itags.org/c-c++/195297/
>
> says "Because back_inserter_iterator<> is an output iterator but not an
> input iterator."
>
> any clue ?
>
> Søren
>
>
>
>
> Sodan wrote:
> >
> > 1>  BooleanStream.cpp
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2039: 'back_insert_iterator' : is not a member of 'std'
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2065: 'back_insert_iterator' : undeclared identifier
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2275: 'std::vector<_Ty>' : illegal use of this type as an
> > expression
> > 1>          with
> > 1>          [
> > 1>              _Ty=unsigned char
> > 1>          ]
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C3861: 'iter': identifier not found
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
> > error C2065: 'iter' : undeclared identifier
> >
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287755.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Re: Visual Studio 2010 compile error

Posted by Sodan <so...@sodan.dk>.
found this link
http://programming.itags.org/c-c++/195297/

says "Because back_inserter_iterator<> is an output iterator but not an
input iterator."

any clue ?

Søren




Sodan wrote:
> 
> 1>  BooleanStream.cpp
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2039: 'back_insert_iterator' : is not a member of 'std'
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2065: 'back_insert_iterator' : undeclared identifier
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2275: 'std::vector<_Ty>' : illegal use of this type as an
> expression
> 1>          with
> 1>          [
> 1>              _Ty=unsigned char
> 1>          ]
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C3861: 'iter': identifier not found
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
> error C2065: 'iter' : undeclared identifier
> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287755.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Visual Studio 2010 compile error

Posted by Sodan <so...@sodan.dk>.
Solved:

add this line to the source files complaining...
#include <iterator>

sincerely,
Søren

-- 
View this message in context: http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287848.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Visual Studio 2010 compile error

Posted by Timothy Bish <ta...@gmail.com>.
Is most likely a project setting that MS has added, until I have access to a
copy of VS2010 I'm not sure what that would be.  I'd look for a setting that
affect STL compatibility.

Regards
Tim.

On Mon, Apr 19, 2010 at 5:13 AM, Sodan <so...@sodan.dk> wrote:

>
> there are several of these... cant compile the project...
>
> help!
>
> Søren
>
>
>
>
> Sodan wrote:
> >
> > 1>  BooleanStream.cpp
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2039: 'back_insert_iterator' : is not a member of 'std'
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2065: 'back_insert_iterator' : undeclared identifier
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C2275: 'std::vector<_Ty>' : illegal use of this type as an
> > expression
> > 1>          with
> > 1>          [
> > 1>              _Ty=unsigned char
> > 1>          ]
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> > error C3861: 'iter': identifier not found
> > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
> > error C2065: 'iter' : undeclared identifier
> >
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287630.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Re: Visual Studio 2010 compile error

Posted by Sodan <so...@sodan.dk>.
there are several of these... cant compile the project...

help!

Søren




Sodan wrote:
> 
> 1>  BooleanStream.cpp
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2039: 'back_insert_iterator' : is not a member of 'std'
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2065: 'back_insert_iterator' : undeclared identifier
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2275: 'std::vector<_Ty>' : illegal use of this type as an
> expression
> 1>          with
> 1>          [
> 1>              _Ty=unsigned char
> 1>          ]
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C3861: 'iter': identifier not found
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
> error C2065: 'iter' : undeclared identifier
> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287630.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Visual Studio 2010 compile error

Posted by Timothy Bish <ta...@gmail.com>.
ActiveMQ-CPP has not been tested on Visual Studio 2010.  If you have a patch
you are welcome to create a Jira issue and attach it there.

Regards
Tim Bish


On Sun, Apr 18, 2010 at 6:30 PM, Sodan <so...@sodan.dk> wrote:

>
> 1>  BooleanStream.cpp
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2039: 'back_insert_iterator' : is not a member of 'std'
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2065: 'back_insert_iterator' : undeclared identifier
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C2275: 'std::vector<_Ty>' : illegal use of this type as an expression
> 1>          with
> 1>          [
> 1>              _Ty=unsigned char
> 1>          ]
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134):
> error C3861: 'iter': identifier not found
> 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(135):
> error C2065: 'iter' : undeclared identifier
>
>
>
> --
> View this message in context:
> http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28285659.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>