Error compiling in c++

Bug #297711 reported by Marc Mollà Roselló
6
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;\
     (bytesDecoded)++;\
 }

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.

Revision history for this message
Marc Mollà Roselló (marcmolla) wrote :
description: updated
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Can you describe the steps to reproduce this bug a bit more clearly?

Changed in snacc (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snacc (Ubuntu) because there has been no activity for 60 days.]

Changed in snacc (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.