Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [Boost-build] [testing][build]Error in all my runners in docbook.jam
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2017-08-12 07:55:39


On 11/08/2017 13:55, Rene Rivera via Boost-Testing wrote:
>
> It is that.. Just rebuild b2 to handle the new block comments.

I deleted all my regression folder and found that bjam isn't properly
building. I guess my previous iterations were using an old bjam.exe.
build.bat output

strings.c(195) : error C2143: syntax error : missing ';' before 'type'
strings.c(196) : error C2065: 'p' : undeclared identifier
strings.c(196) : warning C4047: '>=' : 'int' differs in levels of
indirection from 'char *'

"char *p" is declared after the assertion which is illegal C90.

strings.c(240) : error C2143: syntax error : missing ';' before 'type'
strings.c(241) : error C2275: 'string' : illegal use of this type as an
expression
         c:\boost\develop\boost_bb\src\engine\strings.h(22) : see
declaration of 'string'
strings.c(241) : error C2146: syntax error : missing ';' before
identifier 'bar_copy'

"char * const bar" is declared in the middle of the scope.

Patch attached. My bjam builder is the old MSVC 7.1, but I guess that
same problem happens at least with MSVC2012.

Best,

Ion




Boost-testing list run by mbergal at meta-comm.com