Compiling PowerLoom C++
Cameron Ross <[email protected]> Sat, 13 Feb 2010 23:40:54 -0500
| Newsgroups | gmane.comp.ai.powerloom |
|---|---|
| Message-ID | <[email protected]> |
--===============1923620739==
Content-Type: multipart/alternative; boundary=001636b2bbfd27dc9c047f881bba
--001636b2bbfd27dc9c047f881bba
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Hello,
I'm trying the compile the C++ version of PowerLoom version 3.2.52. Runnin=
g
make from .../native/cpp/stella gives copious errors similar to:
hierarchy.cc:97: error: cast from =91stella::Object*=92 to =91stella::boole=
an=92
loses precision. This error refers to what seems to be a recurring theme
throughout PowerLoom's C++ codebase. Just wondering why the boolean cast i=
s
required. Also, wondering why its not compiling for me, when clearly this
idiom must have worked with gcc at some point. I'm running 64bit Ubuntu
Linux 9.10 with g++ version 4.4.1. Note that the code associated with this
specific error is:
if (!((boolean)(self))) {
stream << "!NULL!";
}
Thanks,
Cameron Ross
--001636b2bbfd27dc9c047f881bba
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Hello,<div><br></div><div>I'm trying the compile the C++ version of Pow=
erLoom version 3.2.52. =A0Running make from .../native/cpp/stella gives cop=
ious errors similar to: hierarchy.cc:97: error: cast from =91stella::Object=
*=92 to =91stella::boolean=92 loses precision. =A0This error refers to what=
seems to be a recurring theme throughout PowerLoom's C++ codebase. =A0=
Just wondering why the boolean cast is required. =A0Also, wondering why its=
not compiling for me, when clearly this idiom must have worked with gcc at=
some point. =A0I'm running 64bit Ubuntu Linux 9.10 with g++ version 4.=
4.1. =A0Note that the code associated with this specific error is:</div>
<div><br></div><div><div>=A0=A0 =A0if (!((boolean)(self))) {</div><div>=A0=
=A0 =A0 =A0 =A0 =A0stream << "!NULL!";</div><div>=A0=A0 =A0=
}</div><div><br></div>Thanks,<br>Cameron Ross<br><br>
</div>
--001636b2bbfd27dc9c047f881bba--
--===============1923620739==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
powerloom-forum mailing list
[email protected]
http://mailman.isi.edu/mailman/listinfo/powerloom-forum
--===============1923620739==--