Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "BartC" <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Compile error |
| Date | 2012-01-15 17:13 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <jev1f7$f28$1@dont-email.me> (permalink) |
| References | <5976423f-f7d5-40e6-b8fa-7636c8a8d8b7@a17g2000yqj.googlegroups.com> |
"dspfun" <dspfun@hotmail.com> wrote in message news:5976423f-f7d5-40e6-b8fa-7636c8a8d8b7@a17g2000yqj.googlegroups.com... > Hi, > > I get a compile/preprocessor error when trying to call/use the > following line: > openlog (__FUNCTION__, 0x02 | 0x01 | 0x08, (1<<3)); > > > The openlog function is declared as: > > extern void openlog (__const char *__ident, int __option, int > __facility); > Does anyone have any idea what the problem is and how to resolve it? What happens when __FUNCTION__ is replaced with NULL or 0? What happens when you change __const to const (or leave it out altogether)? -- Bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Compile error dspfun <dspfun@hotmail.com> - 2012-01-15 08:14 -0800
Re: Compile error NEON China BLUE <chine.bleu@yahoo.com> - 2012-01-15 08:29 -0800
Re: Compile error dspfun <dspfun@hotmail.com> - 2012-01-15 08:32 -0800
Re: Compile error dspfun <dspfun@hotmail.com> - 2012-01-15 09:07 -0800
Re: Compile error "BartC" <bc@freeuk.com> - 2012-01-15 17:13 +0000
Re: Compile error Keith Thompson <kst-u@mib.org> - 2012-01-15 13:55 -0800
Re: Compile error Ian Collins <ian-news@hotmail.com> - 2012-01-16 11:25 +1300
Re: Compile error Kaz Kylheku <kaz@kylheku.com> - 2012-01-15 23:28 +0000
Re: Compile error Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-16 12:37 +0000
Re: Compile error Keith Thompson <kst-u@mib.org> - 2012-01-16 12:02 -0800
Re: Compile error blp@cs.stanford.edu (Ben Pfaff) - 2012-01-16 13:23 -0800
Re: Compile error Keith Thompson <kst-u@mib.org> - 2012-01-16 14:17 -0800
Re: Compile error dspfun <dspfun@hotmail.com> - 2012-01-17 03:40 -0800
Re: Compile error Kaz Kylheku <kaz@kylheku.com> - 2012-01-16 21:51 +0000
csiph-web