Error compiling in c++
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snacc (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: snacc
The macro BDEC_2ND_EOC_OCTET defined in the header asn-len.h (included in snacc package) have a little bug that produce a lot of errors in c++ code generated compilation. This macro uses "endl" without namespace "std::".
The patch for solve this errors:
--- asn-len.h.original 2008-11-13 15:17:21.000000000 +0100
+++ asn-len.h 2008-11-13 15:17:41.000000000 +0100
@@ -82,7 +82,7 @@
#define BDEC_2ND_EOC_OCTET( b, bytesDecoded, env)\
{\
if ((b.GetByte() != 0) || b.ReadError())\
- Asn1Warning << "Warning - second octet of EOC not zero" << endl;\
+ Asn1Warning << "Warning - second octet of EOC not zero" << std::endl;\
(bytesDeco
}
I'm using Ubuntu 8.10 and the snacc version is 1.3bbn-9.3. The header asn-len.h is included in libsnacc-dev binary package.
description: | updated |
Can you describe the steps to reproduce this bug a bit more clearly?