2) in wxGuiPluginBase I create new class, name TestClassForExport
3) Add my class files to MakeList
3) Declare in .cpp files this:
Code: Select all
#include <wx/listimpl.cpp>
WX_DEFINE_LIST(MyList);
Code: Select all
WX_DECLARE_USER_EXPORTED_LIST(TestClassForExport, IFloorTaskTimeList,DEMO_API);
Code: Select all
#include "TestClassForExport.h"
#include <wx/listimpl.cpp>
WX_DEFINE_LIST(IFloorTaskTimeList);
TestClassForExport::TestClassForExport()
{
//ctor
}
TestClassForExport::~TestClassForExport()
{
//dtor
}
Code: Select all
#ifndef TESTCLASSFOREXPORT_H
#define TESTCLASSFOREXPORT_H
#include "../wxNonGuiPluginBase/Declarations.h"
class TestClassForExport
{
public:
TestClassForExport();
virtual ~TestClassForExport();
protected:
private:
};
WX_DECLARE_USER_EXPORTED_LIST(TestClassForExport, IFloorTaskTimeList,DEMO_API);
#endif // TESTCLASSFOREXPORT_H
and i see this error:
-------------- Build: all in wxModularHost ---------------
Using makefile: Makefile
[ 12%] Built target wxModularCore
[ 16%]
Building CXX object //home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/Linux/Release/CMakeFiles/wxGuiPluginBase.dir/TestClassForExport.cpp.o
In file included from //home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp:1:0:
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.h:14:51: ошибка: «IFloorTaskTimeList» не был декларирован
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.h:14:78: ошибка: expected identifier before «)» token
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.h:14:79: ошибка: expected constructor, destructor, or type conversion before «;» token
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp:5:1: ошибка: «wxIFloorTaskTimeListNode» не был декларирован
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp: В функции «void DeleteData()»:
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp:5:1: ошибка: нет декларации «_WX_LIST_ITEM_TYPE_IFloorTaskTimeList» в этой области видимости
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp:5:1: ошибка: expected primary-expression before «)» token
//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/TestClassForExport.cpp:5:1: ошибка: expected «;» before «GetData»
make[2]: *** [//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/Linux/Release/CMakeFiles/wxGuiPluginBase.dir/TestClassForExport.cpp.o] Ошибка 1
make[1]: *** [//home/nicolay/RaspberryPi/wxModularApp/wxGuiPluginBase/Linux/Release/CMakeFiles/wxGuiPluginBase.dir/all] Ошибка 2
make: *** [all] Ошибка 2
Process terminated with status 2 (0 minutes, 0 seconds)
7 errors, 0 warnings
What is Wrong?