MSVS - Compiler Warnings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

MSVS - Compiler Warnings

Josh Green-3
Hi everyone, I have been getting the following warnings in my program,
and as you can imagine, I quite like having warning free builds...
Could someone please decode this and tell me what is wrong in english?

Thanks

I'm using:
Lua 5.0
Luabind B7 - I think
MS Visual Studio 2003

PS: Does the CVS version of luabind now support lua5.1?
PPS: I wouldn't mind a function that says the version of luabind

--Josh

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(104) : warning C4541: 'dynamic_cast' used on polymorphic
type 'HeadsUpDisplay' with /GR-; unpredictable behavior may result
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(103) : while compiling class-template member function
'const luabind::wrap_base
*luabind::detail::extract_wrap_base<T>::extract(const T *)'
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(123) : see reference to class template instantiation
'luabind::detail::extract_wrap_base<T>' being compiled
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(120) : while compiling class-template member function 'bool
luabind::detail::back_reference_impl<T>::extract(lua_State *,const T *)'
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(178) : see reference to class template instantiation
'luabind::detail::back_reference_impl<T>' being compiled
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\policy.hpp(508) : see reference to class template instantiation
'luabind::back_reference<T>' being compiled
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\call.hpp(207) : see reference to function template instantiation 'void
luabind::detail::pointer_converter<luabind::detail::cpp_to_lua>::apply<H
eadsUpDisplay>(lua_State *,T *)' being compiled
        with
        [
            T=HeadsUpDisplay
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(46) : see reference to function template instantiation
'int luabind::detail::returns<T>::call<Camera,Camera,Policies>(T
(__thiscall Camera::* )(void) const,WrappedClass *,lua_State *,const
Policies *)' being compiled
        with
        [
            T=HeadsUpDisplay *,
            Policies=luabind::detail::null_type,
            WrappedClass=Camera
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(66) : see reference to function template instantiation
'int luabind::detail::get<HeadsUpDisplay*,Camera,T,Policies>(R
(__thiscall Camera::* )(void) const,T *,lua_State *,Policies *)' being
compiled
        with
        [
            T=Camera,
            Policies=luabind::detail::null_type,
            R=HeadsUpDisplay *
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(62) : while compiling class-template member function 'int
luabind::detail::get_caller<T,F,Policies>::operator ()(lua_State
*,int,F)'
        with
        [
            T=Camera,
            F=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
            Policies=luabind::detail::null_type
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\class.
hpp(1196) : see reference to class template instantiation
'luabind::detail::get_caller<T,F,Policies>' being compiled
        with
        [
            T=Camera,
            F=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
            Policies=luabind::detail::null_type
        ]
 
d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\class.
hpp(917) : see reference to function template instantiation
'luabind::class_<T,X1>
&luabind::class_<T,X1>::property_impl<Getter,MaybeSetter>(const char
*,Getter,Setter,boost::mpl::bool_<C_>)' being compiled
        with
        [
            T=Camera,
            X1=Object,
            Getter=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
            MaybeSetter=void (__thiscall Camera::* )(HeadsUpDisplay *),
            Setter=void (__thiscall Camera::* )(HeadsUpDisplay *),
            C_=false
        ]
 
d:\Development\Oblivion\Source\Modules\Systems\Scripting\Links\links -
objects.cpp(91) : see reference to function template instantiation
'luabind::class_<T,X1>
&luabind::class_<T,X1>::property<HeadsUpDisplay*(__thiscall Camera::*
)(void) const,void(__thiscall Camera::* )(HeadsUpDisplay *)>(const char
*,Getter,MaybeSetter)' being compiled
        with
        [
            T=Camera,
            X1=Object,
            Getter=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
            MaybeSetter=void (__thiscall Camera::* )(HeadsUpDisplay *)
        ]


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: MSVS - Compiler Warnings

fredrik-10

You simply forgot to enable RTTI in your project.

In VS6 you change (apply) it by :

Project settings - C/C++ - C++ language (check the box "Enable Run-Time Type Information (RTTI)" )

In VS .net you change (apply) it by:

Project properties - C/C++ - Language (change "Enable Run-Time Type Information" to YES)

Regarding Luabind and Lua 5.1 compatibility, read more here :

http://sourceforge.net/tracker/index.php?func=detail&aid=1491056&group_id=77060&atid=549060

Download the .diff-file, apply changes to your code and rebuild Luabind. Should work after that.





On Mon Jul 31 12:06 , 'Josh Green' <[hidden email]> sent:

Hi everyone, I have been getting the following warnings in my program,
and as you can imagine, I quite like having warning free builds...
Could someone please decode this and tell me what is wrong in english?

Thanks

I'm using:
Lua 5.0
Luabind B7 - I think
MS Visual Studio 2003

PS: Does the CVS version of luabind now support lua5.1?
PPS: I wouldn't mind a function that says the version of luabind

--Josh

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(104) : warning C4541: 'dynamic_cast' used on polymorphic
type 'HeadsUpDisplay' with /GR-; unpredictable behavior may result

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(103) : while compiling class-template member function
'const luabind::wrap_base
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(123) : see reference to class template instantiation
'luabind::detail::extract_wrap_base' being compiled
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(120) : while compiling class-template member function 'bool
luabind::detail::back_reference_impl::extract(lua_State *,const T *)'
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(178) : see reference to class template instantiation
'luabind::detail::back_reference_impl' being compiled
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\policy.hpp(508) : see reference to class template instantiation
'luabind::back_reference' being compiled
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\call.hpp(207) : see reference to function template instantiation 'void
luabind::detail::pointer_converter::apply eadsUpDisplay>(lua_State *,T *)' being compiled
with
[
T=HeadsUpDisplay
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(46) : see reference to function template instantiation
'int luabind::detail::returns::call(T
(__thiscall Camera::* )(void) const,WrappedClass *,lua_State *,const
Policies *)' being compiled
with
[
T=HeadsUpDisplay *,
Policies=luabind::detail::null_type,
WrappedClass=Camera
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(66) : see reference to function template instantiation
'int luabind::detail::get(R
(__thiscall Camera::* )(void) const,T *,lua_State *,Policies *)' being
compiled
with
[
T=Camera,
Policies=luabind::detail::null_type,
R=HeadsUpDisplay *
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\detail
\property.hpp(62) : while compiling class-template member function 'int
luabind::detail::get_caller::operator ()(lua_State
with
[
T=Camera,
F=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
Policies=luabind::detail::null_type
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\class.
hpp(1196) : see reference to class template instantiation
'luabind::detail::get_caller' being compiled
with
[
T=Camera,
F=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
Policies=luabind::detail::null_type
]

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\class.
hpp(917) : see reference to function template instantiation
'luabind::class_
&luabind::class_::property_impl(const char
with
[
T=Camera,
X1=Object,
Getter=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
MaybeSetter=void (__thiscall Camera::* )(HeadsUpDisplay *),
Setter=void (__thiscall Camera::* )(HeadsUpDisplay *),
C_=false
]

d:\Development\Oblivion\Source\Modules\Systems\Scripting\Links\links -
objects.cpp(91) : see reference to function template instantiation
'luabind::class_
&luabind::class_::property )(void) const,void(__thiscall Camera::* )(HeadsUpDisplay *)>(const char
with
[
T=Camera,
X1=Object,
Getter=HeadsUpDisplay *(__thiscall Camera::* )(void) const,
MaybeSetter=void (__thiscall Camera::* )(HeadsUpDisplay *)
]


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php\?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
<A href="javascript:top.opencompose('luabind-user@lists.sourceforge.net','','','')">luabind-user@...
https://lists.sourceforge.net/lists/listinfo/luabind-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: MSVS - Compiler Warnings

Alexander Gladysh
> Regarding Luabind and Lua 5.1 compatibility, read more here :
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1491056&group_id=77060&atid=549060
>
> Download the .diff-file, apply changes to your code and rebuild Luabind.
> Should work after that.

AFAIK, current CVS HEAD has this patch applied.

HTH,
Alexander.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: MSVS - Compiler Warnings

Arvid Norberg-2
On Mon, Jul 31, 2006 at 03:35:37PM +0400, Alexander Gladysh wrote:
> > Regarding Luabind and Lua 5.1 compatibility, read more here :
> >
> > http://sourceforge.net/tracker/index.php?func=detail&aid=1491056&group_id=77060&atid=549060
> >
> > Download the .diff-file, apply changes to your code and rebuild Luabind.
> > Should work after that.
>
> AFAIK, current CVS HEAD has this patch applied.

Yes it has.

--
Arvid Norberg

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: MSVS - Compiler Warnings

Canute Bigler
In reply to this post by Josh Green-3
This warning is telling you that you've got RTTI turned off, but luabind is
using a dynamic_cast.

AFAIK, luabind uses RTTI for object identity (see sec 10.1.1 in the luabind
docs).  If you don't use C++ built in RTTI, then I think that you'll need to
implement you're own RTTI system (as described in section 15: Build
Options).

In VS.NET 2003 you can turn on RTTI by selecting
Project->Properties->C/C++->Language->Enable Run-Time Type Info.

HTH

- Canute

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]On Behalf Of Josh
Green
Sent: Monday, July 31, 2006 6:06 AM
To: [hidden email]
Subject: [luabind] MSVS - Compiler Warnings


Hi everyone, I have been getting the following warnings in my program,
and as you can imagine, I quite like having warning free builds...
Could someone please decode this and tell me what is wrong in english?

Thanks

I'm using:
Lua 5.0
Luabind B7 - I think
MS Visual Studio 2003

PS: Does the CVS version of luabind now support lua5.1?
PPS: I wouldn't mind a function that says the version of luabind

--Josh

d:\Development\Oblivion\Source\Modules\ThirdParty\include\luabind\back_r
eference.hpp(104) : warning C4541: 'dynamic_cast' used on polymorphic
type 'HeadsUpDisplay' with /GR-; unpredictable behavior may result

<clipped>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user