Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #846
| From | Richard Kettlewell <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: warning: implicit declaration of function ‘mkstemp’ |
| Date | 2017-08-03 11:08 +0100 |
| Organization | terraraq NNTP server |
| Message-ID | <87ini50xrp.fsf@LkoBDZeT.terraraq.uk> (permalink) |
| References | <olurnd$3b6$1@solani.org> |
Philipp Klaus Krause <pkk@spth.de> writes: > When using mkstemp() in my C source, I get the gcc warning: > > warning: implicit declaration of function ‘mkstemp’ > > Why? > I use gcc 6.4.0 on a debian GNU/Linux system. > <stdlib.h> is included. I use other POSIX functions (such as > ftruncate() and open()) that are not part of ISO C in the same source > file, but get a warning for mkstemp() only. > I tried using -D_POSIX_C_SOURCE=200112L, but still get the warning. WFM on an up-to-date sid install. What’s your test case? -- http://www.greenend.org.uk/rjk/
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
warning: implicit declaration of function ‘mkstemp’ Philipp Klaus Krause <pkk@spth.de> - 2017-08-03 11:51 +0200
Re: warning: implicit declaration of function ‘mkstemp’ Richard Kettlewell <invalid@invalid.invalid> - 2017-08-03 11:08 +0100
Re: warning: implicit declaration of function ‘mkstemp’ Philipp Klaus Krause <pkk@spth.de> - 2017-08-03 12:30 +0200
Re: warning: implicit declaration of function ‘mkstemp’ jt@toerring.de (Jens Thoms Toerring) - 2017-08-05 15:11 +0000
Re: warning: implicit declaration of function ‘mkstemp’ Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2017-08-07 13:47 +0100
csiph-web