Public bug reported:

Greetings!

I was programming and have found a very strange behavior. The program below 
shows the 
problem I've found:

//---- bug.c ------
#include <stdlib.h>
#define __USE_GNU
#include <stdio.h>

int main(int argc, char ** argv)
{
  printf("test\n");
  exit(0);
}
//---- end of bug.c ------

Put it in a "bug.c" file.

To compile I used the following command:

    gcc -g -Wall -o bug bug.c

The result I have obtained is:

# gcc -g -Wall -o bug bug.c

In file included from bug.c:3:
/usr/include/stdio.h:291: error: expected declaration specifiers or ‘...’ 
before ‘_IO_cookie_io_functions_t’

I don't know if it is normal. So I opened a bug.

Thanks in advance.

Ric.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc6-dev 2.11.1-0ubuntu7.1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Jun 22 22:22:32 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.utf8
 SHELL=/bin/bash
SourcePackage: eglibc

** Affects: eglibc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
Problem on Include Files (stdio.h)
https://bugs.launchpad.net/bugs/597507
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to