[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pdp++ cygwin xp



Did you get the latest 3.2a source code?  I believe this is a compiler bug 
that was fixed in this latest code.

- Randy

On Tuesday 24 August 2004 10:55 am, Joshua W. Brown wrote:
> Hi PDP++ discussion group,
>
> Thanks for the feedback; that resolved that issue.  I also had to make
> several other tweaks to get interviews to compile, and now pdp++ still
> won't compile.  Here is the history:
>
> 1) comment out the gethostname() function in src/lib/OS/host.cpp, and then
> interviews compiled and installed.
>
> 2) I also had to symlink /usr/local/iv-15/src to /usr/local/interviews in
> order for pdp++ to compile and install correctly, even though I ran the
> interviews configure and install with the appropriate flags as far as I can
> tell:
>
> ln -s /usr/local/iv-15/src /usr/local/interviews
>
> 3) Now I get what looks like a strange compiler error when compiling pdp++:
>
> Compiling:  /usr/local/pdp++/src/css/ta_css.cc on Brownlap in directory
> /usr/local/pdp++/src/css/CYGWIN at Tue Aug 24 11:34:37 CST 2004
> g++ -fno-implicit-templates -fno-exceptions -o
> ta_css.o -I/usr/include/g++-3 -I/usr/X11R6/include -I./src_include
> -I./src_i nclude/css -I/usr/local/pdp++/include/CYGWIN
> -I/usr/local/interviews/include -O2 -Wall -DYYDEBUG  -DHAVE_POSIX_SIGNALS=1
> -DRETSIGTYPE=void  -DCYGWIN - DLINUX -D__i386__ -DWIN32 -c
> /usr/local/pdp++/src/css/ta_css.cc
> /usr/local/pdp++/src/css/ta_css.cc: In member function `virtual taString&
>    cssTA::GetStr() const':
> /usr/local/pdp++/src/css/ta_css.cc:273: error: non-lvalue in unary `&'
> /usr/local/pdp++/src/css/ta_css.cc:282: error: non-lvalue in unary `&'
> make[3]: *** [ta_css.o] Error 1
> make[3]: Leaving directory `/usr/local/pdp++/src/css/CYGWIN'
> make[2]: *** [optLib_impl] Error 2
> make[2]: Leaving directory `/usr/local/pdp++/src/css/CYGWIN'
> make[1]: *** [optLib] Error 2
> make[1]: Leaving directory `/usr/local/pdp++/src/css'
> make: *** [Libs] Error 1
>
> --------
> The compiler is the latest version 3.3.3-3, which I just updated moments
> before.  I also got the error message with the earlier 3.3.3-2 compiler:
> $ g++ --version
> g++ (GCC) 3.3.3 (cygwin special)
>
> Any ideas?
>
> Thanks
> Josh Brown
>
> ----- Original Message -----
> From: "Randall C. O'Reilly" <oreilly@psych.colorado.edu>
> To: "Joshua W. Brown" <jwbrown@artsci.wustl.edu>
> Cc: <pdp-discuss@psych.colorado.edu>
> Sent: Tuesday, August 24, 2004 12:08 AM
> Subject: Re: pdp++ cygwin xp
>
> > You might try replacing the first #if with #if 0 to get the second
> > function and see if it fixes it..
> >
> > - Randy
> >
> > #if defined(WIN32) && !defined(__MWERKS__)
> > int fd = _open((char*)s->string(), O_RDONLY);
> > #else
> >     /* cast to workaround DEC C++ prototype bug */
> >     int fd = ::open((char*)s->string(), O_RDONLY);
> > #endif
> >
> > On Thursday 19 August 2004 05:25 pm, Joshua W. Brown wrote:
> > > Hi,
> > >
> > > I'm trying to compile pdp++ for cygwin on Windows xp pro sp1.  I've
> > > followed the directions in Makefile.CYGWIN, but when I try to compile
> > > Interviews, the compilation exits with the following.  Can anyone point
> > > me in the right direction?
> > >
> > > Thanks
> > > Josh Brown
> > >
> > > ----------
> > >
> > > $ make
> > > Making all in src
> > > make[1]: Entering directory `/usr/local/iv-15/src'
> > > Making all in lib
> > > make[2]: Entering directory `/usr/local/iv-15/src/lib'
> > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c OS/file.cpp
> > > -DDLL_EXPORT - DPIC -o OS/file.lo
> > > OS/file.cpp: In static member function `static osInputFile*
> > >    osInputFile::open(const osString&)':
> > > OS/file.cpp:220: error: `_open' undeclared (first use this function)
> > > OS/file.cpp:220: error: (Each undeclared identifier is reported only
> > > once for each function it appears in.)
> > > make[2]: *** [OS/file.lo] Error 1
> > > make[2]: Leaving directory `/usr/local/iv-15/src/lib'