[Bug 297711] Re: Error compiling in c++

Marc Mollà Roselló marcmolla at gmail.com
Thu Nov 13 16:45:03 UTC 2008


** Description changed:

  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.
+ 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.

-- 
Error compiling in c++
https://bugs.launchpad.net/bugs/297711
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list