From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30437 invoked by alias); 28 Nov 2007 21:27:37 -0000 Received: (qmail 30426 invoked by uid 22791); 28 Nov 2007 21:27:36 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.179) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 21:27:27 +0000 Received: by wa-out-1112.google.com with SMTP id m16so1871306waf for ; Wed, 28 Nov 2007 13:27:24 -0800 (PST) Received: by 10.114.89.1 with SMTP id m1mr360261wab.1196285244802; Wed, 28 Nov 2007 13:27:24 -0800 (PST) Received: by 10.114.106.5 with HTTP; Wed, 28 Nov 2007 13:27:24 -0800 (PST) Message-ID: <903356430711281327w18284ec9gc5b8ba108861566f@mail.gmail.com> Date: Wed, 28 Nov 2007 22:46:00 -0000 From: mofomojo To: gcc-help@gcc.gnu.org Subject: Re: Compiler isn't finding system header files In-Reply-To: <474D3293.5619D4C9@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <903356430711271429o30d6073aibbeaab34aab4432b@mail.gmail.com> <474D3293.5619D4C9@dessent.net> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg00385.txt.bz2 Thanks for speaking down to me. This problem has already been cleared up. On Nov 28, 2007 5:19 PM, Brian Dessent wrote: > mofomojo wrote: > > > I have the libraries installed, and EVEN if I specify the location of > > the file - in a command like -I/usr/lib/include/gcc/i486 > > -linux-gnu/4.1.2/include/ssp/ (where the system headers are > > installed)I still get the output ... > > You should never have to do that, so don't try. (And for the record, > that directory is only for libssp headers, it is not where things like > stdio.h would be in general; they are under /usr/include because they > are not part of gcc.) It means there is another problem. > > > I have installed, on my system, Debian 4.0 Gnu/Linux with GCC > > installed from the CD provided from the Debian distribution site > > (debian.org ). I've struggled at this for hours trying to figure what > > is wrong, and I've wasted most of the daylight today trying at this > > which is very valuable to me, seeing as winter is approaching and I > > get very little daylight as is with school and everything :( > > > > this is the summary of the output for what I tried to compile here. > > It failed to produce the binary. > > > > gcc -g -I/usr/lib/include/gcc/i486-linux-gnu/4.1.2/include/ssp/ -c > > pdf417decode.c > > pdf417decode.c:39:19: error: stdio.h: No such file or directory > > Headers like stdio.h are not part of gcc. They're part of the libc, so > no amount of installing gcc packages is going to change that. Most > distros split libraries into the runtime and developer parts, because > most users don't need the developer parts; but they're required for > compilation, which is a developer task. Thus you need to install the > libc-dev package (apt-get install libc-dev). However, a better route is > to install the metapackage build-essential (apt-get install > build-essential) which is like a placeholder for all the packages that > are commonly required to build C and C++ programs. > > > If anyone could help, I would be very very gracious so I don't waste > > any more time on this problem. It's really giving me headaches. > > I notice that you didn't get a reply and posted to the main gcc list. > That's somewhat of an inconsiderate thing to do. The whole point of > having separate lists for help using gcc and for people developing gcc > is to make it easier on people that already are very busy and get a lot > of mail. By posting to both you defeat the purpose for having two > lists, and some people might consider that rude. > > Brian >