Date: Wed, 15 Sep 2004 11:07:05 GMT From: Christopher Joyner <weasal@hq.dyns.cx> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/71760: c++ ignoring inlcuded varibles in include file Message-ID: <200409151107.i8FB75Ks005443@www.freebsd.org> Resent-Message-ID: <200409151110.i8FBAIeu010958@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 71760
>Category: misc
>Synopsis: c++ ignoring inlcuded varibles in include file
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 15 11:10:18 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409151107.i8FB75Ks005443>
