[Bf-committers] scons/freebsd with gameengine question

Hans Lambermont hans at lambermont.dyndns.org
Wed Apr 13 14:02:24 CEST 2005


Kester Maddock wrote:

> It looks to me like a conflict between your standard C and your
> standard C++ headers.
> 
> The only thing I can think of is: 1. to go through and replace all the
> #include <iostream.h> etc with #include <iostream> (or viceversa)

There's only 1 iostream.h in the whole tree : in
extern/qhull/src/qhull_interface.cpp , replacing it with iostream
results in :

...
/usr/include/c++/3.4/bits/localefwd.h:58: error: `std::isspace' declared as an `inline' variable
/usr/include/c++/3.4/bits/localefwd.h:58: error: template declaration of `bool std::isspace'
...

The other way around, 63 #include <iostream> lines. Replacing them with
find . -type f -exec perl -p -i -e "s/<iostream>/<iostream.h>/" {} \;
results in a lot of warnings :

    warning: #warning This file includes at least one deprecated
    or antiquated header. Please consider usingone of the 32
    headers found in section 17.4.1.2 of the C++ standard.
    Examples include substituting the <X> header for the <X.h>
    header for C++ includes, or <iostream> instead of the
    deprecated header <iostream.h>. To disable this warning use
    -Wno-deprecated.

and the same errors as with <iostream> above. Both cases now already
bomb out at
====> gmake all in source/gameengine/Converter
g++ -c -DUSE_SUMO_SOLID -pipe -fPIC -DNDEBUG -O2 -Wall -Wno-reorder -D_THREAD_SAFE -I/usr/X11R6/include
-I/home/hans/src/blender_cvs01/blender/../lib/freebsd-5.3-i386/string/include
-I/home/hans/src/blender_cvs01/blender/../lib/freebsd-5.3-i386/SoundSystem/include
-I/usr/local/include/python2.4
-I/home/hans/src/blender_cvs01/blender/source/gameengine/Physics/Sumo/Fuzzics/include
-I/home/hans/src/blender_cvs01/blender/source/gameengine/Physics/Sumo
-I/home/hans/src/blender_cvs01/blender/../lib/freebsd-5.3-i386/moto/include
-I/home/hans/src/blender_cvs01/blender/../lib/freebsd-5.3-i386/solid/include
-I../../blender -I../../blender/imbuf -I../../blender/makesdna
-I../../blender/include -I../../blender/blenlib
-I../../blender/blenkernel -I../../blender/render/extern/include
-I/home/hans/src/blender_cvs01/blender/../lib/freebsd-5.3-i386/guardedalloc/include
-I../Expressions -I../Rasterizer -I../GameLogic -I../Ketsji
-I../BlenderRoutines -I../SceneGraph -I../../kernel/gen_system
-I../Rasterizer/RAS_OpenGLRasterizer -I../Network -I../Ketsji/KXNetwork
-I../Physics/common -I../Physics/Dummy -I../Physics/BlOde
BL_ActionActuator.cpp -o /home/hans/src/blender_cvs01/blender/obj/freebsd-5.3-i386/gameengine/blconverter/BL_ActionActuator.o

> 2. #define __CUSTOM_STREAM

What do you mean here ?

> 3. Try and isolate it - create an empty file with just #include
> <iostream> in it and see if that compiles.   Keep adding (system)
> include files from KX_IpoConvert.cpp until it breaks.

Good idea ;-) I'll do that and report back.

-- Hans


More information about the Bf-committers mailing list