Re: Port-related C++ question

2001-04-29 Thread Warner Losh
In message <[EMAIL PROTECTED]> Peter Seebach writes: : In message <[EMAIL PROTECTED]>, Jos Backus writes: : >Yeah, I am just puzzled as to how this can build at all on other platforms : >(Linux?), unless they don't define this variable. : : Many of them probably have it as an external object, not

Re: Port-related C++ question

2001-04-29 Thread Peter Seebach
In message <[EMAIL PROTECTED]>, Jos Backus writes: >Yeah, I am just puzzled as to how this can build at all on other platforms >(Linux?), unless they don't define this variable. Many of them probably have it as an external object, not a #define. I'm still not sure the code makes any sense. -s

Re: Port-related C++ question

2001-04-28 Thread Dima Dorfman
Jos Backus <[EMAIL PROTECTED]> writes: > On Sat, Apr 28, 2001 at 09:32:51PM -0700, Dima Dorfman wrote: > > Jos Backus <[EMAIL PROTECTED]> writes: > > > void stdin(const Config& config); <-=== line 99 > > > > `stdin' is a global variable which, surprisingly enough, refers to the > > standard i

Re: Port-related C++ question

2001-04-28 Thread Jos Backus
On Sat, Apr 28, 2001 at 09:32:51PM -0700, Dima Dorfman wrote: > Jos Backus <[EMAIL PROTECTED]> writes: > > void stdin(const Config& config); <-=== line 99 > > `stdin' is a global variable which, surprisingly enough, refers to the > standard input stream. Don't name a function after it and yo

Re: Port-related C++ question

2001-04-28 Thread Warner Losh
In message <[EMAIL PROTECTED]> Jos Backus writes: : dbtool.h:99: declaration of `__sF' as array of references : void stdin(const Config& config); <-=== line 99 stdin is #defined to be __sF[0]. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the bo

Re: Port-related C++ question

2001-04-28 Thread Dima Dorfman
Jos Backus <[EMAIL PROTECTED]> writes: > void stdin(const Config& config); <-=== line 99 `stdin' is a global variable which, surprisingly enough, refers to the standard input stream. Don't name a function after it and your problem should go away. To Unsubscribe: send mail to [EMAIL PROTECTE

Port-related C++ question

2001-04-28 Thread Jos Backus
[Apologies if this is the wrong list for this type of question.] I am trying to create a port for a commandline-accessible database tool, but I am running into the following problem (on RELENG_4 as of today): ===> Building for dbtool-1.3 c++ -DPACKAGE=\"dbtool\" -DVERSION=\"1.3\" -DSTDC_HEADERS