Re: Compile PowerLoom in C++

Thomas Russ <[email protected]> Sat, 13 Oct 2007 02:11:52 -0700
Newsgroups gmane.comp.ai.powerloom
Message-ID <[email protected]>
On Oct 12, 2007, at 6:47 AM, Andrea Poli wrote:

> I've tried to compile the c++ version of PowerLoom. I've used a live
> distro of Ubuntu and gcc 4.1 getting these error messages:
>
> root@ubuntu:/media/ACER/powerloom-3.2.0/native/cpp/powerloom# make
> for system in logic logic/extensions  ; do \
>           (cd ../${system} ; \
>           make  CC=gcc CXX=g++ LINK-MODE=dynamic lib;) \
>         done
> make[1]: Entering directory `/media/ACER/powerloom-3.2.0/native/cpp/ 
> logic'
> g++ -w -g -O2 -fno-common -DSTELLA_USE_GC
> -I../stella/cpp-lib/gc/include  -c -I.. logic-macros.cc
> ../stella/primal.hh:84: error: explicit qualification in  
> declaration of
> ‘double stella::fmod(double, double)’
> ...etc.

> Maybe I should use an older version of gcc?

That may be what you need to do.
Compiling with gcc 4.0 on MacOS X 10.4, things compile without trouble.