🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #5961

Re: fix-header bug in gcc-2.7.2.1

#5961
From: Per Bothner
Date: Tue, 14 Jan 1997 00:00
19 lines
1114 bytes
> with g++ hello.cpp, I get a linker problem not finding printf.
> This occurs with all other standard c functions.

You left out the most important piece of information - how
you invoke the compiler.  For example, if you use explicit
-I flags to find stdio.h it will not work, because cpp
will not realize it is a "standard" C header file.  It only
adds the implicit extern "C" for "standard" C header files.

> Is this a bug? did someone mistakenly take it out?

No.  No.

If you are "creative" in either building/installing the compiler
*or* invoking it, you might get problems like this.

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com
Technical Details
Message-ID: <199701142358.PAA07478@cygnus.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,a9c26189247badb2
X-Google-Attributes: gid113d02,public
From: bothner@cygnus.com (Per Bothner)
Subject: Re: fix-header bug in gcc-2.7.2.1
Date: 1997/01/14
Message-ID: <199701142358.PAA07478@cygnus.com>
X-Deja-AN: 209912180
sender: bug-gcc-request@prep.ai.mit.edu
x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 14 Jan 1997 19:06:44 EST
newsgroups: gnu.gcc.bug