FAQ
Hi all,


Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
compile SSL versions, I allways get compile errors:

..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
convert parameter 1 from 'LPTSTR' a 'const char *'
..\src\main\decaf\lang\System.cpp(395) : error C2664:
'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
'const std::string &'


any idea?

--
Óscar Pernas Plaza.

Search Discussions

  • Timothy Bish at Sep 28, 2010 at 10:13 am

    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'


    any idea?
    Would need to know more about your environment (compiler, OS, Arch).

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Oscar Pernas at Sep 28, 2010 at 10:19 am
    Windows XP with Visual Studio 2005, on 386 architecture..

    thanks

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'


    any idea?
    Would need to know more about your environment (compiler, OS, Arch).

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

    --
    Óscar Pernas Plaza.
  • Timothy Bish at Sep 28, 2010 at 10:51 am

    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Oscar Pernas at Sep 28, 2010 at 10:56 am
    yes sorry, I'd read somewhere that I had to change the Version="9.00" to
    Version="8.00" in vcproj to try to open project with visual 2005 ( i can't
    use vs2008).. this cause the compile errors?



    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

    --
    Óscar Pernas Plaza.
  • Timothy Bish at Sep 28, 2010 at 12:25 pm

    On Tue, 2010-09-28 at 11:55 +0100, Oscar Pernas wrote:
    yes sorry, I'd read somewhere that I had to change the Version="9.00" to
    Version="8.00" in vcproj to try to open project with visual 2005 ( i can't
    use vs2008).. this cause the compile errors?
    Not that I'm aware of. You might want to download a copy of VS2008
    Express and give it a try just as a sanity check.

    Regards

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Oscar Pernas at Sep 28, 2010 at 2:47 pm
    there is no option to compile activemq-cpp in visual studio 2005? Im going
    to try to download visual studio 2008 and I'll let you know.

    thanks!

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 11:55 +0100, Oscar Pernas wrote:
    yes sorry, I'd read somewhere that I had to change the Version="9.00" to
    Version="8.00" in vcproj to try to open project with visual 2005 ( i can't
    use vs2008).. this cause the compile errors?
    Not that I'm aware of. You might want to download a copy of VS2008
    Express and give it a try just as a sanity check.

    Regards

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I
    try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' :
    cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de
    'LPTSTR'
    a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

    --
    Óscar Pernas Plaza.
  • Oscar Pernas at Sep 29, 2010 at 12:08 pm
    Hi,


    I've still having this errors with visual studio 2008 express, this is the
    log:

    ------ Build started: Project: activemq-cpp, Configuration: Release-SSL
    Win32 ------
    Compiling...
    System.cpp
    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' to 'const char *'
    Types pointed to are unrelated; conversion requires
    reinterpret_cast, C-style cast or function-style cast
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'LPTSTR' to
    'const std::string &'
    with
    [
    _Ty=std::string
    ]
    Reason: cannot convert from 'LPTSTR' to 'const std::string'
    No constructor could take the source type, or constructor overload
    resolution was ambiguous
    ..\src\main\decaf\lang\System.cpp(396) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' to 'const char *'
    Types pointed to are unrelated; conversion requires
    reinterpret_cast, C-style cast or function-style cast


    Anyone has tried before to compile releaseSSL version in windows?

    2010/9/28 Oscar Pernas <oscar@pernas.es>
    there is no option to compile activemq-cpp in visual studio 2005? Im going
    to try to download visual studio 2008 and I'll let you know.

    thanks!


    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 11:55 +0100, Oscar Pernas wrote:
    yes sorry, I'd read somewhere that I had to change the Version="9.00" to
    Version="8.00" in vcproj to try to open project with visual 2005 ( i can't
    use vs2008).. this cause the compile errors?
    Not that I'm aware of. You might want to download a copy of VS2008
    Express and give it a try just as a sanity check.

    Regards

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I
    try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' :
    cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de
    'LPTSTR'
    a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

    --
    Óscar Pernas Plaza.


    --
    Óscar Pernas Plaza.
  • Timothy Bish at Sep 29, 2010 at 1:14 pm

    On Wed, 2010-09-29 at 13:07 +0100, Oscar Pernas wrote:
    Hi,


    I've still having this errors with visual studio 2008 express, this is the
    log:
    Added some missing preprocessor definitions to the Project files in SVN,
    you can check out the latest changes from the 3.2.x fixes branch to get
    the fix.

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

    Regards

    ------ Build started: Project: activemq-cpp, Configuration: Release-SSL
    Win32 ------
    Compiling...
    System.cpp
    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' to 'const char *'
    Types pointed to are unrelated; conversion requires
    reinterpret_cast, C-style cast or function-style cast
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'LPTSTR' to
    'const std::string &'
    with
    [
    _Ty=std::string
    ]
    Reason: cannot convert from 'LPTSTR' to 'const std::string'
    No constructor could take the source type, or constructor overload
    resolution was ambiguous
    ..\src\main\decaf\lang\System.cpp(396) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' to 'const char *'
    Types pointed to are unrelated; conversion requires
    reinterpret_cast, C-style cast or function-style cast


    Anyone has tried before to compile releaseSSL version in windows?

    2010/9/28 Oscar Pernas <oscar@pernas.es>
    there is no option to compile activemq-cpp in visual studio 2005? Im going
    to try to download visual studio 2008 and I'll let you know.

    thanks!


    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 11:55 +0100, Oscar Pernas wrote:
    yes sorry, I'd read somewhere that I had to change the Version="9.00" to
    Version="8.00" in vcproj to try to open project with visual 2005 ( i can't
    use vs2008).. this cause the compile errors?
    Not that I'm aware of. You might want to download a copy of VS2008
    Express and give it a try just as a sanity check.

    Regards

    2010/9/28 Timothy Bish <tabish121@gmail.com>
    On Tue, 2010-09-28 at 09:59 +0100, Oscar Pernas wrote:
    Hi all,


    Im trying to compile Activemq-CPP 3.2.3. My problem is that when I
    try to
    compile SSL versions, I allways get compile errors:

    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' :
    cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de
    'LPTSTR'
    a
    'const std::string &'


    any idea?

    That particular bit of code hasn't changed in some time and has built
    with VS2005, VS2008 and VS2010. Have you changed any project settings
    in the supplied VS project files?

    Regards

    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/

    --
    Óscar Pernas Plaza.
    --
    Tim Bish

    Open Source Integration: http://fusesource.com

    Follow me on Twitter: http://twitter.com/tabish121
    My Blog: http://timbish.blogspot.com/
  • Ivan Pechorin at Sep 29, 2010 at 1:35 pm
    2010/9/28 Oscar Pernas <oscar@pernas.es>:
    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter  1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter  1 1 de 'LPTSTR' a
    'const std::string &'
    It seems like you specified "Unicode" as character set in the
    configuration properties of MSVC project. Change it to "Multi-Byte" or
    "Not Set" and try to build it again.
  • Oscar Pernas at Oct 4, 2010 at 10:06 am
    ok, that's it!

    2010/9/29 Ivan Pechorin <ivan.pechorin@gmail.com>
    2010/9/28 Oscar Pernas <oscar@pernas.es>:
    ..\src\main\decaf\lang\System.cpp(389) : error C2664: 'strlen' : cannot
    convert parameter 1 from 'LPTSTR' a 'const char *'
    ..\src\main\decaf\lang\System.cpp(395) : error C2664:
    'std::vector<_Ty>::push_back' : cannot convert parameter 1 1 de 'LPTSTR' a
    'const std::string &'
    It seems like you specified "Unicode" as character set in the
    configuration properties of MSVC project. Change it to "Multi-Byte" or
    "Not Set" and try to build it again.


    --
    Óscar Pernas Plaza.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesactivemq
postedSep 28, '10 at 8:59a
activeOct 4, '10 at 10:06a
posts11
users3
websiteactivemq.apache.org

People

Translate

site design / logo © 2022 Grokbase