scrib's profile - activity

2016-01-18 13:51:04 -0700 received badge  Famous Question (source)
2015-08-25 08:31:15 -0700 received badge  Notable Question (source)
2015-04-21 16:43:00 -0700 received badge  Popular Question (source)
2015-04-10 23:42:11 -0700 commented question Getting undefined reference to 'typeinfo for ajn::BusObject

I am using 14.12.00b for Android that can be downloaded from https://allseenalliance.org/developers/download. It is the newest one, isn't it? Anyway, I was having problems when using Chaiscript (requires RTTI) in the same project. I am going with Angelscript instead so I can build without RTTI.

2015-04-09 12:25:35 -0700 answered a question Getting undefined reference to 'typeinfo for ajn::BusObject

I am using 14.12.00b for Android that can be downloaded from https://allseenalliance.org/developers/download . It is the newest one, isn't it?

Anyway, I was having problems when trying to use Chaiscript in the same project. Chaiscript requires RTTI. I am going with Angelscript instead so I can build without RTTI.

2015-04-03 13:44:34 -0700 asked a question Getting undefined reference to 'typeinfo for ajn::BusObject

When I build my Android app by using Android NDK and disabling RTTI (by setting -fno-rtti in Application.mk) I can use Alljoyn Android library without any problems.

But in my project I need to use RTTI (by setting -frtti). Now I get this error when trying to build:

:typeinfo for hello::ChatObject: error: undefined reference to 'typeinfo for ajn::BusObject

I did some googling and think I have an idea of what the problem is. I can force the error by doing something like this:

class TestA
{
public:
    TestA() {}
    virtual void abc();
};

class TestB : public TestA
{
public:
    TestB() {}
    void abc() {}
};

But the error disappears when setting the method to pure virtual like so in TestA in the example above:

virtual void abc() = 0;

I can see that BusObject has some methods that are not implemented in the BusObject.h header file and are not pure virtual. I am not sure if some of the methods are implemented in a corresponding BusObject.cpp file or not.

For me to be able to finish my project I would like an update in BusObject.h so that all methods are either having a dummy implementation or are set to pure virtual so I can override them in my child class.

Can this be done?