[rabbitmq-discuss] building SimpleAmqpClient redux (Visual Studio 2008)
Alan Antonuk
alan.antonuk at gmail.com
Mon Mar 5 16:54:38 GMT 2012
Looks like you found a bug!
I suspect its because most other platforms (including VS2010 - which I
tested it under) have the stdint.h header, which is implicitly included by
#include <boost/cstdint.h>, which I'm apparently using incorrectly.
An (untested) workaround I would try for the moment if you don't want to
change the SimpleAmqpClient code itself would be to download the msinttypes
http://code.google.com/p/msinttypes/ and include it before you include any
other SimpleAmqpClient headers
-Alan
P.S. I've filed a bug here:
https://github.com/alanxz/SimpleAmqpClient/issues/1
On Mon, Mar 5, 2012 at 9:52 AM, Eric J. Holtman <eric at holtmans.com> wrote:
> On 3/5/2012 8:24 AM, Eric J. Holtman wrote:
> > sigh.
> >
> > I can get cmake to run. It generates the solution files
> > and project files for VS 2008 just fine.
> >
> > They won't compile.
> >
> > errors are all like this:
> >
> > 1>MessageReturnedException.cpp
> > 1>c:\dev\simpleamqpclient\src\SimpleAmqpClient/BasicMessage.h(195) :
> > error C2146: syntax error : missing ';' before identifier 'Priority'
> >
> > the problem is that none of the typedefs for uint8_t, uint16_t etc
> > seem to have been included.
> >
>
>
> The error seems to ne (taking AmqpException.h for example)
> that the headers are including
>
> #include <boost/cstdint.hpp>
>
> but then the code has declarations like:
>
> explicit AmqpException(const std::string& reply_text, uint16_t
> class_id, uint16_t method_id) throw();
>
> the boost/cstdint.hpp puts uint16_t in the boost:: namesspace,
> NOT in std::
>
> if I change the above line to
>
> explicit AmqpException(const std::string& reply_text, boost::uint16_t
> class_id, boost::uint16_t method_id) throw();
>
> it compiles.
>
> I'm not really willing to put a "using namespace boost" at the top
> of the headers.
>
> Am I missing something obvious here?
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120305/284d5186/attachment.htm>
More information about the rabbitmq-discuss
mailing list