![]() |
David Schuetz wrote: I recently found a program on the net for faxes under NeXTSTEP, and from that I discovered HylaFax. Wanting greater control over my fax software (and not needing answering machine features) I decided to try and compile HylaFax for the NeXT. I've downloaded the latest gcc (2.7.2.2), and I *think* it compiled and installed properly. But I'm having a devil of a time getting it to work right. So far I've had include problems with port.h (not liking extern defs of opendir and cfsetispeed), configure (strftime and socket calls not found in library searches--they're in NeXTish libs), syslog.c (couldn't find LOG_PERROR or STDERR_FILENO), and problems finding new.h, std.h, and _G_config.h (NeXT has them all in a g++ directory). Try figuring out a way that ./configure checks the right places (libs and include files) for your system and places the needed defines into port.h (and please provide a patch for ./configure which doesn't break anything else); matthias All those I kinda hacked around, and I figure they're okay, though they may be indicative of more serious problems. Right now I'm stuck on an error while compiling RegExPtr.c++, which I've traced (with no help from gcc's error message) to three lines in Array.c++: ITEM * obj = new(ptr) ITEM; and ITEM * obj = new(q) ITEM(*p); [twice] Now, I'm comfortable (though by no means an expert) with Objective-C, but I can't make heads or tails of this C++ stuff. What exactly are these lines trying to do? [in this case, ITEM turns out to be the class(?) RegExPtr]. Why won't it compile? Here's the output of the make: .... = util /usr/local/bin/gcc -I../../zlib -D__ANSI_CPP__ -I. -I.. -I../../util -I../../util -I/usr/local/include -I../../regex -g -O -x c++ -c ../../util/RegExArray.c++ ../../util/RegExArray.c++: In method `void RegExArray::createElements(void *, unsigned int)': ../../util/RegExArray.c++:27: too many arguments for function `void * operator new(long unsigned int)' ../../util/RegExArray.c++: In method `void RegExArray::copyElements(const void *, void *, unsigned int) const': ../../util/RegExArray.c++:27: too many arguments for function `void * operator new(long unsigned int)' ../../util/RegExArray.c++:27: too many arguments for function `void * operator new(long unsigned int)' *** Exit 1 Stop. I'm running NeXTSTEP 3.2 on motorola hardware, if that helps (which it probably won't). I strongly suspect I'm missing something simple somewhere deep in my configuration or gcc installation, but not having a clue how c++ works, I'm at a loss as to where to start. I've been working at this since Saturday, and have given up hope of solving it myself. Any suggestions??? Thanks! david.