From nobody@FreeBSD.org  Wed Sep 15 11:07:08 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EA99216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:07:08 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E0BE743D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:07:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8FB76Cq005444
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:07:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8FB75Ks005443;
	Wed, 15 Sep 2004 11:07:05 GMT
	(envelope-from nobody)
Message-Id: <200409151107.i8FB75Ks005443@www.freebsd.org>
Date: Wed, 15 Sep 2004 11:07:05 GMT
From: Christopher Joyner <weasal@hq.dyns.cx>
To: freebsd-gnats-submit@FreeBSD.org
Subject: c++ ignoring inlcuded varibles in include file
X-Send-Pr-Version: www-2.3

>Number:         71760
>Category:       misc
>Synopsis:       c++ ignoring inlcuded varibles in include file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 11:10:18 GMT 2004
>Closed-Date:    Thu Sep 16 21:52:30 GMT 2004
>Last-Modified:  Thu Sep 16 21:52:30 GMT 2004
>Originator:     Christopher Joyner
>Release:        FreeBSD 5.3 BETA 4
>Organization:
none
>Environment:
not avialable      
>Description:
when c++ compiles a cpp file, a varible included in a include file
is not being defined. it says the varible is undefined.
this happens with SDL.h and mikmod.h
      
>How-To-Repeat:
create a src file with this header
#include "mikmod.h" (or "SDL.h")
try and use one of the included varibles, lik wrap.

wrap=1;

try and compile it with something like this

c++ -o problemchecker.o -c problemchecker.cpp -I/usr/local/include

it should say compile error
wrap undeclaried varible.



      
>Fix:
i don't know :/      
>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@freebsd.org>
To: Christopher Joyner <weasal@hq.dyns.cx>
Cc: bug-followup@freebsd.org
Subject: Re: misc/71760: c++ ignoring inlcuded varibles in include file
Date: Wed, 15 Sep 2004 22:40:54 +0300

 On 2004-09-15 11:07, Christopher Joyner <weasal@hq.dyns.cx> wrote:
 > when c++ compiles a cpp file, a varible included in a include file
 > is not being defined. it says the varible is undefined.
 > this happens with SDL.h and mikmod.h
 
 Can you post a minimal pair of header and .cpp files that exhibits the
 behavior you describe?  Perhaps it's a bug in the way the header and the
 source that includes it are written.
 
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Thu Sep 16 21:50:45 GMT 2004 
State-Changed-Why:  
Pilot error.  The include files mentioned and the test program used contain 
various bugs that cause the warnings by the C++ compiler. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71760 
>Unformatted:
