I have a problem creating QxOM with Android. I´m using QxOrM 1.2.9, Boost 1.54 and Android NDK32 R10 (compiler Android GCC arm-4.8).
When I want to create QxORM there is a failure.
- Code: Select all
C:\Libs\QxOrm\include\QxCollection\IxCollection.h:58: Fehler: variable 'qx::QX_DLL_EXPORT qx::IxCollection' has initializer but incomplete type class QX_DLL_EXPORT IxCollection
...
There a many more failures according to IxCollection
Here is the class
- Code: Select all
#ifndef _IX_COLLECTION_H_
#define _IX_COLLECTION_H_
#ifdef _MSC_VER
#pragma once
#endif
/*!
* \file IxCollection.h
* \author Lionel Marty
* \ingroup QxCollection
* \brief Common interface for all QxOrm containers qx::QxCollection<Key, Value>
*/
#include <boost/any.hpp>
#include <QxTraits/get_class_name.h>
#include <QxCommon/QxAnyCastDynamic.h>
namespace qx {
/*!
* \ingroup QxCollection
* \brief qx::IxCollection : common interface for all QxOrm containers qx::QxCollection<Key, Value>
*/
class QX_DLL_EXPORT IxCollection
{
public:
IxCollection() { ; }
virtual ~IxCollection() = 0;
virtual long _count() const = 0;
virtual void _clear() = 0;
virtual bool _remove(long index) = 0;
virtual boost::any _at(long index) const = 0;
template <typename T>
T _get(long index) const
{ return qx::any_cast_dynamic<T>::get(_at(index)); }
};
typedef boost::shared_ptr<qx::IxCollection> IxCollection_ptr;
} // namespace qx
QX_REGISTER_CLASS_NAME(IxCollection)
#endif // _IX_COLLECTION_H_
I think it´s a problem with "QX_DLL_EXPORT". If I delete this part the same failure "variable ... has initializer but incomplete type" appears in another class.
What I have to do to solve? Please can you help to create.
THX in advance.
Regards!