我鑽研Mosync &它會很不錯,但由於某些原因,我收到以下錯誤,我不明白:Mosync生成錯誤:什麼意思
First error = "Error: Unresolved symbol '__ZN4MAUI6LayoutC1EiiiiPNS_6WidgetEii',"
Second Error = "Error: Unresolved symbol '__ZN4MAUI7ListBoxC1EiiiiPNS_6WidgetENS0 _18ListBoxOrientationENS0_20ListBoxAnimationTypeEb',"
我在下面評論錯誤指的是哪一行。我也清理了我的項目&重建,這工作的第一次,但現在它不會工作&其創建這些類型的錯誤的其他創作的小部件,如標籤。這個錯誤是什麼意思?
#include <MAUtil/Moblet.h>
#include <MAUI/Layout.h>
#include <MAUI/ListBox.h>
#include <MAUI/Label.h>
#include <MAUI/EditBox.h>
using namespace MAUtil;
using namespace MAUI;
/// Functions ///
float toFahrenheit(float fahrenVal);
float toCelsius(float celsiusVal);
class TemperatureMoblet : public Moblet
{
public:
TemperatureMoblet()
{
mainLayout = NULL;
mainListBox = NULL;
initScreen();
}
void keyPressEvent(int keyCode, int nativeCode)
{
// todo: handle key presses
}
void keyReleaseEvent(int keyCode, int nativeCode)
{
// todo: handle key releases
}
void initScreen()
{
mainLayout = new Layout(0, 0, 100, 600, NULL, 1, 3); // ERROR HERE
mainListBox = new ListBox(0, 0, 100, 200, mainLayout,
ListBox::LBO_VERTICAL, ListBox::LBA_LINEAR,
true); // 2nd error here
......
}