[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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'