Thanks for the guidance.
In the thread you mention it is not clear if it is legal or no to inline
public funtions. Anyway, it breaks so the change is reverted, I just hope
the compiler is clever enough to inline all the calls to IsStatic (it is
const, just return a bool and it is called very very frequently) but sadly I
think these kinds of optimizations are not done outside the unit of
compilation (file).
What compiler are you using? Here it is working with gcc 4.1.2
On Fri, May 16, 2008 at 10:03 PM, Benjamin Kloster <[EMAIL PROTECTED]>
wrote:
> Hello,
> with my compiler, revision 6442 doesn't link because of the inlining of the
> function Entity::IsStatic(). The linking fails for Body.o, because it can't
> access IsStatic(). When removing the "inline" in the function definition,
> all is well. See also: http://gcc.gnu.org/ml/gcc-prs/2003-05/msg00608.html
>
> Ben
> --
> 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
> Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
--
Jordi Polo Carres
NLP laboratory - NAIST
http://www.bahasara.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo