This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE
- From: "msm at freescale dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 27 Feb 2012 21:18:29 +0000
- Subject: [Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13775
Bug #: 13775
Summary: dprintf and vdprintf are undefined if -D_GNU_SOURCE
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: stdio
AssignedTo: unassigned@sourceware.org
ReportedBy: msm@freescale.com
Classification: Unclassified
See the following errors:
# gcc -o test -D_GNU_SOURCE test.c
In file included from /usr/include/stdio.h:933:0,
from test.c:1:
/usr/include/bits/stdio-ldbl.h:67:1: error: 'vdprintf' undeclared here (not in
a function)
/usr/include/bits/stdio-ldbl.h:68:1: error: 'dprintf' undeclared here (not in a
function)
test.c: In function 'main':
test.c:9:16: error: called object 'dprintf' is not a function
Seems to be related to in appropriate ifdef. Full test case below:
https://gist.github.com/1927104
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.