Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #845

warning: implicit declaration of function ‘mkstemp’

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.os.linux.development.apps
Subject warning: implicit declaration of function ‘mkstemp’
Date Thu, 3 Aug 2017 11:51:40 +0200
Organization solani.org
Lines 12
Message-ID <olurnd$3b6$1@solani.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1501753901 3430 eJwFwYEBACAEBMCViH8ap8L+I3QHo/KFE3QMpogZya53xGDXtL2ii20anrLakXV24769DB8ohRE3 (3 Aug 2017 09:51:41 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 3 Aug 2017 09:51:41 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
X-User-ID eJwNysEBwCAIA8CVAEmQdSpm/xHsvQ+LzlNJMCEorc+uRbput5om5ox/xr9UD2JjwtGXUdIDBAIQPw==
Cancel-Lock sha1:gtOdMKxrjT41dUosJ3lltYM5Cpw=
X-NNTP-Posting-Host eJwFwYkBwEAEBMCWOKwox9t/CZkxAaNdYVA7O6p0Dn4bi8rR7o99xWudHqTsJtPi2mNqiH8nRxG9
Content-Language en-US
X-Mozilla-News-Host snews://news.solani.org:563
Xref csiph.com comp.os.linux.development.apps:845

Show key headers only | View raw


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.

Philipp

Back to comp.os.linux.development.apps | Previous | NextNext in thread | Find similar


Thread

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