| |
| Posted by Gerhard Wiesinger in reply to Walter | PermalinkReply |
|
Gerhard Wiesinger
Posted in reply to Walter
| 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
|