This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/13775] New: dprintf and vdprintf are undefined if -D_GNU_SOURCE


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]