misc/71760: c++ ignoring inlcuded varibles in include file

Christopher Joyner weasal at hq.dyns.cx
Wed Sep 15 04:10:19 PDT 2004

>Number:         71760
>Category:       misc
>Synopsis:       c++ ignoring inlcuded varibles in include file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 11:10:18 GMT 2004
>Originator:     Christopher Joyner
>Release:        FreeBSD 5.3 BETA 4
not avialable      
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
create a src file with this header
#include "mikmod.h" (or "SDL.h")
try and use one of the included varibles, lik wrap.


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.

i don't know :/      

More information about the freebsd-bugs mailing list