Thread overview
c't Puzzle
Jul 04, 2003
Gerhard Wiesinger
Jul 04, 2003
Walter
Jul 04, 2003
Gerhard Wiesinger
Jul 04, 2003
Richard Grant
July 04, 2003
Hello Walter!

I tried to compile the c't Puzzle with Digital Mars. It compiles well, but
it does not work (There is no output as a number which should be 409963).
(Solution from Waldemar Rosenbach with templates)

Any ideas?

Links:
www.ctpuzzle.de
http://www.heise.de/ct/puzzle/
http://www.heise.de/ct/puzzle/programme/
ftp://ftp.heise.de/pub/ct/projekte/ctpuzzle/WaldemarRosenbach.zip

Ciao,
Gerhard
July 04, 2003
"Gerhard Wiesinger" <lists@wiesinger.com> wrote in message news:Pine.LNX.4.53.0307040720280.15578@bbs.intern...
> Hello Walter!
>
> I tried to compile the c't Puzzle with Digital Mars. It compiles well, but
> it does not work (There is no output as a number which should be 409963).
> (Solution from Waldemar Rosenbach with templates)
>
> Any ideas?
>
> Links:
> www.ctpuzzle.de
> http://www.heise.de/ct/puzzle/
> http://www.heise.de/ct/puzzle/programme/
> ftp://ftp.heise.de/pub/ct/projekte/ctpuzzle/WaldemarRosenbach.zip


It's most likely a bug in ctpuzzle.


July 04, 2003
On Thu, 3 Jul 2003, Walter wrote:

>
> "Gerhard Wiesinger" <lists@wiesinger.com> wrote in message news:Pine.LNX.4.53.0307040720280.15578@bbs.intern...
> > Hello Walter!
> >
> > I tried to compile the c't Puzzle with Digital Mars. It compiles well, but
> > it does not work (There is no output as a number which should be 409963).
> > (Solution from Waldemar Rosenbach with templates)
> >
> > Any ideas?
> >
> > Links:
> > www.ctpuzzle.de
> > http://www.heise.de/ct/puzzle/
> > http://www.heise.de/ct/puzzle/programme/
> > ftp://ftp.heise.de/pub/ct/projekte/ctpuzzle/WaldemarRosenbach.zip
>
>
> It's most likely a bug in ctpuzzle.
>

Are you sure? What's wrong?

As Harald Bögeholz told me, the following line of compileTime-12/main.cpp
must be uncommented to get the output:
	cerr << Puzzle<p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12>::solutions << endl;

After compiling with DM 8.35.4n I got the following errors:
main.cpp(184) : Error: '}' expected
main.cpp(768) : Error: 'r00' must be a public base class of
'?$Piece@$00$0@$0@$0
@$0@$0@$0@$0@$00$0@$0@$01$00$0@$01$00$0@$01'
main.cpp(184) : Error: '}' expected
main.cpp(291) : Error:
'?$RedundantHelper2@?$RedundantHelper@$00$0@$0@$0@$0@$0@$
0@$0@$00$0@$0@$01$00$0@$01$00$0@$01$00$0@@$00$0@$0@$0@$0@$0@$0@$0@$00$0@$0@$01$0
0$0@$01$00$0@$01$00$0@$0@' must be a public base class of
'?$RedundantHelper@$00
$0@$0@$0@$0@$0@$0@$0@$00$0@$0@$01$00$0@$01$00$0@$01$00$0@'
main.cpp(769) : Error: 'r01' must be a public base class of
'?$Piece@$00$0@$0@$0
@$0@$0@$0@$0@$00$0@$0@$01$00$0@$01$00$0@$01'
Fatal error: too many errors
--- errorlevel 1

Any ideas?

Ciao,
Gerhard
July 04, 2003
In article <Pine.LNX.4.53.0307041642400.24530@bbs.intern>, Gerhard Wiesinger says...

>As Harald B=F6geholz told me, the following line of compileTime-12/main.cpp
>must be uncommented to get the output:
>=09cerr << Puzzle<p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12>::solutions << end=
>l;

I used your download ftp link, and my compileTime-12/main.cpp does not have this line. Also, I get no compile errors, and the resulting exe happily consumes cpu cycles.

Richard