With celx.cpp v1.79 the compiler gives a conversion error on the following code:
if (star->getOrbitBarycenter() != NULL)
{
Selection parent(star->getOrbitBarycenter());
lua_pushstring(l, "parent");
object_new(l, parent);
lua_settable(l, -3);
}
The compiler can't convert "star" to "star* "
I use vc++ 2003 on winxp
compiler Error
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
Re: compiler Error
HB wrote:With celx.cpp v1.79 the compiler gives a conversion error on the following code:
if (star->getOrbitBarycenter() != NULL)
{
Selection parent(star->getOrbitBarycenter());
lua_pushstring(l, "parent");
object_new(l, parent);
lua_settable(l, -3);
}
The compiler can't convert "star" to "star* "
I use vc++ 2003 on winxp
Yes, I also had this error after Chris' recent commit. I fixed it within my new patch with other stuff for the forthcoming Celestia-1.4.0pre8. The code is still being tested before I commit it to CVS.
Shouldn't be long.
Bye Fridger